chore: align Traefik proxy setup and production deploy workflow
CI / quality (push) Waiting to run

This commit is contained in:
MOH
2026-03-06 14:39:03 +01:00
parent f86b7f39f7
commit 725a1c1669
4 changed files with 60 additions and 24 deletions
+18 -5
View File
@@ -1,12 +1,25 @@
FROM node:22-alpine
FROM node:22-alpine AS deps
WORKDIR /app
COPY package*.json ./
RUN npm install
RUN npm ci
FROM node:22-alpine AS builder
WORKDIR /app
COPY --from=deps /app/node_modules ./node_modules
COPY . .
RUN npm run build
FROM node:22-alpine AS runner
WORKDIR /app
ENV NODE_ENV=production
ENV NEXT_TELEMETRY_DISABLED=1
COPY --from=builder /app/package*.json ./
COPY --from=builder /app/node_modules ./node_modules
COPY --from=builder /app/.next ./.next
COPY --from=builder /app/public ./public
COPY --from=builder /app/prisma ./prisma
COPY --from=builder /app/next.config.mjs ./next.config.mjs
EXPOSE 3000
CMD ["npm", "run", "dev", "--", "--hostname", "0.0.0.0", "--port", "3000"]
CMD ["npm", "run", "start", "--", "--hostname", "0.0.0.0", "--port", "3000"]