Migrate from Replit infrastructure: Neon→PostgreSQL, GCS→S3, ReplitAuth→email/password, add Dockerfile

This commit is contained in:
2026-06-07 14:33:49 +02:00
parent cc2445c4d9
commit bcbc76bf43
5 changed files with 135 additions and 348 deletions
+17
View File
@@ -0,0 +1,17 @@
# Multi-stage build
FROM node:20-alpine AS builder
WORKDIR /app
COPY package*.json ./
RUN npm ci
COPY . .
RUN npm run build
FROM node:20-alpine
WORKDIR /app
ENV NODE_ENV=production
COPY package*.json ./
RUN npm ci --omit=dev && npm cache clean --force
COPY --from=builder /app/dist ./dist
COPY --from=builder /app/client/dist ./client/dist 2>/dev/null || true
EXPOSE 5000
CMD ["npm", "run", "start"]