diff --git a/backend/Dockerfile b/backend/Dockerfile index c3e7ae2..f6457ca 100644 --- a/backend/Dockerfile +++ b/backend/Dockerfile @@ -11,6 +11,9 @@ COPY src/ ./src/ # Compile tout (app + scripts) → dist/ 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 ──────────────────────────── FROM node:20-alpine AS runtime WORKDIR /app