Skip to content

Commit 5ca107c

Browse files
committed
Move Dockerfile to docker/backend
1 parent f457fc1 commit 5ca107c

2 files changed

Lines changed: 5 additions & 14 deletions

File tree

.gitignore

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -142,10 +142,3 @@ packages/stack/*
142142
!packages/react/package.json
143143
!packages/next/package.json
144144
!packages/stack/package.json
145-
146-
# GCP infra — Terraform runtime files + secrets
147-
infra/gcp/.terraform/
148-
infra/gcp/.terraform.lock.hcl
149-
infra/gcp/terraform.tfstate
150-
infra/gcp/terraform.tfstate.backup
151-
infra/gcp/env.secret.auto.tfvars.json
Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
# Cloud Run variant: backend only, no entrypoint script, no dashboard.
1+
# Backend only, no migrations or entrypoint script.
22
# Connects to the same AWS services (RDS, S3, KMS) as the Vercel deployment.
33
#
4-
# Build: docker build -f docker/server/Dockerfile.cloudrun -t stack-backend .
5-
# Run: docker run -p 8080:8080 --env-file .env stack-backend
4+
# Build: docker build -f docker/backend/Dockerfile -t stack-backend .
5+
# Run: docker run -p 8102:8102 --env-file .env stack-backend
66

77
ARG NODE_VERSION=22.21.1
88

@@ -82,13 +82,11 @@ COPY --from=builder --chown=node:node /app/node_modules ./node_modules
8282
COPY --from=builder --chown=node:node /app/packages ./packages
8383

8484
ENV NODE_ENV=production
85-
ENV PORT=8080
85+
ENV PORT=8102
8686
ENV HOSTNAME=0.0.0.0
8787

8888
USER node
8989

90-
EXPOSE 8080
90+
EXPOSE 8102
9191

92-
# Migrations run as a separate Cloud Run Job, not here.
93-
# Cloud Run sends SIGTERM on shutdown; the app handles it via the SIGTERM handler in prisma-client.tsx.
9492
CMD ["node", "apps/backend/server.js"]

0 commit comments

Comments
 (0)