Adds Dockerfile and enables standalone Next.js output
All checks were successful
Check / Lint and Check (push) Successful in 45s
All checks were successful
Check / Lint and Check (push) Successful in 45s
Adds a multi-stage Dockerfile and .dockerignore and updates Next.js config to produce a standalone production build. Enables reproducible, smaller production images by leveraging Next's standalone/output tracing, creating a non-root runtime user, and copying only required static and server files. Supports yarn, npm, and pnpm lockfile-driven installs, installs minimal Alpine packages for compatibility and healthchecks, and exposes a production port for containerized deployment.
This commit is contained in:
7
.dockerignore
Normal file
7
.dockerignore
Normal file
@@ -0,0 +1,7 @@
|
||||
Dockerfile
|
||||
.dockerignore
|
||||
node_modules
|
||||
npm-debug.log
|
||||
README.md
|
||||
.next
|
||||
.git
|
||||
Reference in New Issue
Block a user