Portfolio
JMDD-26Production Dockerfile with migrate-on-start entrypoint
Description
- Multi-stage node:22-slim, corepack + frozen lockfile, prod-pruned output, dumb-init as PID 1, non-root user, pinned base images, .dockerignore
- Entrypoint runs drizzle migrate against DATABASE_URL_MIGRATE then execs node; a failed migration crash-loops visibly (documented trade-off, backup restore is one command)
- Image builds and runs locally against compose Postgres
Sub-tickets
0No sub-tickets yet.
Links
No links.
Comments
0No comments yet.