Checkpoint: Migration ImapFlow validée, historique recette fusionné sans réintroduire l’ancien client IMAP, et image Docker optimisée avec suppression des dépendances de développement après build pour réduire le runtime et fiabiliser l’export sur le serveur de recette.
Some checks failed
Validation applicative / TypeScript, tests et build (push) Failing after 38m5s
Some checks failed
Validation applicative / TypeScript, tests et build (push) Failing after 38m5s
This commit is contained in:
@@ -30,7 +30,8 @@ RUN pnpm install --frozen-lockfile
|
||||
COPY . .
|
||||
|
||||
# Build frontend + backend
|
||||
RUN pnpm build
|
||||
RUN pnpm build \
|
||||
&& pnpm prune --prod
|
||||
|
||||
# ============================================================
|
||||
# STAGE 2: Production image
|
||||
@@ -46,6 +47,8 @@ RUN apt-get update && apt-get install -y \
|
||||
|
||||
WORKDIR /app
|
||||
|
||||
ENV NODE_ENV=production
|
||||
|
||||
# Copy node_modules from builder (already compiled, including sharp native binaries)
|
||||
COPY --from=builder /app/node_modules ./node_modules
|
||||
|
||||
|
||||
Reference in New Issue
Block a user