Skip to content

Multi-staged Dockerfile

A multi-stage Dockerfile that builds the app, then installs only production dependencies in the final image. Note the COPY ./config ./config step — Layerfig reads those files at runtime, so leaving them out of the image is an easy way to break a container that built fine.