From 1c52bf3ea4cdaa8957ac85b790e75fa70558962f Mon Sep 17 00:00:00 2001 From: Gabriel Kaszewski Date: Tue, 9 Sep 2025 01:43:21 +0200 Subject: [PATCH] feat: update Docker setup to use custom proxy image and remove redundant steps --- .gitea/workflows/deploy.yml | 11 +---------- compose.prod.yml | 2 +- nginx/Dockerfile | 3 +++ 3 files changed, 5 insertions(+), 11 deletions(-) create mode 100644 nginx/Dockerfile diff --git a/.gitea/workflows/deploy.yml b/.gitea/workflows/deploy.yml index bfffb56..d3595ee 100644 --- a/.gitea/workflows/deploy.yml +++ b/.gitea/workflows/deploy.yml @@ -26,17 +26,8 @@ jobs: run: | docker build --target runtime -t thoughts-backend:latest ./thoughts-backend docker build --target release -t thoughts-frontend:latest --build-arg NEXT_PUBLIC_API_URL=${{ secrets.NEXT_PUBLIC_API_URL }} ./thoughts-frontend + docker build -t custom-proxy:latest ./nginx - - name: List Files in Workspace - run: | - echo "--- Listing all files recursively ---" - ls -lR - - - name: Dump Environment Variables for Debugging - run: | - echo "--- All available environment variables ---" - env | sort - - name: Deploy with Docker Compose run: | # Use "up" without --build, as images are already built diff --git a/compose.prod.yml b/compose.prod.yml index 3a84400..52a28ca 100644 --- a/compose.prod.yml +++ b/compose.prod.yml @@ -49,7 +49,7 @@ services: proxy: container_name: thoughts-proxy - image: nginx:stable-alpine + image: custom-proxy:latest restart: unless-stopped volumes: - ${GITHUB_WORKSPACE}/nginx/nginx.conf:/etc/nginx/conf.d/default.conf diff --git a/nginx/Dockerfile b/nginx/Dockerfile new file mode 100644 index 0000000..793f9c4 --- /dev/null +++ b/nginx/Dockerfile @@ -0,0 +1,3 @@ +FROM nginx:stable-alpine + +COPY nginx.conf /etc/nginx/conf.d/default.conf \ No newline at end of file