feat: update Docker setup to use custom proxy image and remove redundant steps
Some checks failed
Build and Deploy Thoughts / build-and-deploy-local (push) Failing after 7s

This commit is contained in:
2025-09-09 01:43:21 +02:00
parent 327e671571
commit 1c52bf3ea4
3 changed files with 5 additions and 11 deletions

View File

@@ -26,16 +26,7 @@ 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
- 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
docker build -t custom-proxy:latest ./nginx
- name: Deploy with Docker Compose
run: |

View File

@@ -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

3
nginx/Dockerfile Normal file
View File

@@ -0,0 +1,3 @@
FROM nginx:stable-alpine
COPY nginx.conf /etc/nginx/conf.d/default.conf