From fea9449d40266af7f65013a7f734ebf37daf3e6b Mon Sep 17 00:00:00 2001 From: ducoterra Date: Tue, 5 May 2026 06:38:47 -0400 Subject: [PATCH] Hosting works --- .gitea/workflows/build-push.yml | 1 + Dockerfile | 2 +- README.md | 4 ++-- alicia_demo.container | 11 ++++++----- 4 files changed, 10 insertions(+), 8 deletions(-) diff --git a/.gitea/workflows/build-push.yml b/.gitea/workflows/build-push.yml index df62cb5..3432910 100644 --- a/.gitea/workflows/build-push.yml +++ b/.gitea/workflows/build-push.yml @@ -29,6 +29,7 @@ jobs: images: gitea.reeseapps.com/services/alicia-ai-terminology tags: | type=raw,value=main,enable=${{ github.ref == 'refs/heads/main' }} + type=ref,event=tag - name: Build and push uses: docker/build-push-action@v6 diff --git a/Dockerfile b/Dockerfile index d08ec97..41b1067 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,4 @@ FROM docker.io/library/nginx:alpine COPY . /usr/share/nginx/html -EXPOSE 8080 +EXPOSE 80 CMD ["nginx", "-g", "daemon off;"] diff --git a/README.md b/README.md index 1841803..708b3fe 100644 --- a/README.md +++ b/README.md @@ -35,7 +35,7 @@ systemctl --user daemon-reload systemctl --user start alicia_demo.service ``` -Then open `http://localhost:8080`. +Then open `http://localhost:8081`. Stop and remove: @@ -50,7 +50,7 @@ Build and run directly: ```bash podman build -t alicia-ai-cheatsheet . -podman run -d --name alicia-ai-cheatsheet -p 9090:8080 alicia-ai-cheatsheet +podman run -d --name alicia-ai-cheatsheet -p 9090:80 alicia-ai-cheatsheet ``` Then open `http://localhost:9090`. diff --git a/alicia_demo.container b/alicia_demo.container index 27b61b7..72a3ce2 100644 --- a/alicia_demo.container +++ b/alicia_demo.container @@ -1,11 +1,12 @@ [Container] ContainerName=alicia_demo -PublishPort=8080:8080/tcp +PublishPort=8081:80/tcp Image=gitea.reeseapps.com/services/alicia-ai-terminology:main -HealthCheckInterval=30s -HealthCheckTimeout=10s -HealthCheckRetries=5 -HealthCheckCommand=WGET --spider --quiet http://localhost:8080 +HealthCmd=WGET --spider --quiet http://localhost:80 +HealthInterval=30s +HealthTimeout=10s +HealthRetries=5 +HealthOnFailure=kill [Unit] Description=Alicia Demo Web Service