fix: copy SQL migrations to dist/ in Dockerfile

This commit is contained in:
deploy
2026-04-29 11:08:39 +02:00
parent 0244532411
commit c83d4ebe24
+3
View File
@@ -11,6 +11,9 @@ COPY src/ ./src/
# Compile tout (app + scripts) → dist/ # Compile tout (app + scripts) → dist/
RUN npm run build RUN npm run build
# Copier les fichiers non-TypeScript (SQL, assets) dans dist/
RUN cp -r src/migrations dist/migrations
# ── Stage 2 : Image de production ──────────────────────────── # ── Stage 2 : Image de production ────────────────────────────
FROM node:20-alpine AS runtime FROM node:20-alpine AS runtime
WORKDIR /app WORKDIR /app