Include nginx in deploy_all.sh
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful

This commit is contained in:
Josh 2025-08-01 11:21:57 +00:00
parent 76dbd9b509
commit 7ceaa78bb8
4 changed files with 5 additions and 3 deletions

View File

@ -2,7 +2,6 @@
node_modules
npm-debug.log
build*
dist
data/*
*.env*

2
.env
View File

@ -2,4 +2,4 @@ CORS_ALLOWED_ORIGINS=https://dev1.aptivaai.com,http://34.16.120.118:3000,http://
SERVER1_PORT=5000
SERVER2_PORT=5001
SERVER3_PORT=5002
IMG_TAG=202507311843
IMG_TAG=202508011118

3
Dockerfile.nginx Normal file
View File

@ -0,0 +1,3 @@
FROM nginx:1.25-alpine
COPY build/ /usr/share/nginx/html
COPY nginx.conf /etc/nginx/nginx.conf

View File

@ -28,7 +28,7 @@ npm run build
TAG=$(date -u +%Y%m%d%H%M)
echo "🔨 Building & pushing containers (tag = ${TAG})"
for svc in server1 server2 server3; do
for svc in server1 server2 server3 nginx; do
docker build -f Dockerfile."$svc" -t "${REG}/${svc}:${TAG}" .
docker push "${REG}/${svc}:${TAG}"
done