Checkpoint: Le stockage PDF devient un volume Docker externe explicitement nommé, avec nocopy. Le conteneur refuse de démarrer si /app/storage n’est pas un montage inscriptible, et son healthcheck contrôle aussi ce montage. Les tests, TypeScript et build ont été validés.
All checks were successful
Validation applicative / TypeScript, tests et build (push) Successful in 3m20s
All checks were successful
Validation applicative / TypeScript, tests et build (push) Successful in 3m20s
This commit is contained in:
@@ -63,10 +63,11 @@ COPY --from=builder /app/dist ./dist
|
||||
# Copy drizzle migrations
|
||||
COPY drizzle/ ./drizzle/
|
||||
COPY drizzle.config.ts ./
|
||||
COPY scripts/ensure-storage-volume.sh ./scripts/ensure-storage-volume.sh
|
||||
|
||||
# Create uploads directory
|
||||
RUN mkdir -p /app/uploads
|
||||
# Create uploads directory and make the PDF volume guard executable.
|
||||
RUN mkdir -p /app/uploads && chmod 755 /app/scripts/ensure-storage-volume.sh
|
||||
|
||||
EXPOSE 3000
|
||||
|
||||
CMD ["node", "dist/index.js"]
|
||||
CMD ["/app/scripts/ensure-storage-volume.sh"]
|
||||
|
||||
Reference in New Issue
Block a user