fix: copy SQL migrations to dist/ in Dockerfile
This commit is contained in:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user