feat(deploy): add production stack for the VPS

Compose file for ikerdemo.cat with nginx as TLS terminator, the three
.NET services, Zitadel and the storage stack. Values come from
deploy/.env.prod (untracked). Adds the frontend image, the migration
script and the Zitadel provisioning for production.
This commit is contained in:
2026-07-20 07:27:51 +02:00
parent 8adf24c716
commit 2507d98c55
5 changed files with 591 additions and 0 deletions
+17
View File
@@ -0,0 +1,17 @@
# Build context: frontend/
FROM node:22-alpine AS build
WORKDIR /src
COPY package.json package-lock.json ./
RUN npm install
COPY . .
RUN npm run build
FROM node:22-alpine AS runtime
WORKDIR /app
ENV NODE_ENV=production
COPY --from=build /src/build ./build
COPY --from=build /src/node_modules ./node_modules
COPY --from=build /src/package.json ./package.json
EXPOSE 3000
ENV PORT=3000
CMD ["node", "build/index.js"]