Adds Dockerfile and enables standalone Next.js output
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:
2025-12-09 13:57:33 +01:00
parent ac983406a0
commit df9efce5ce
3 changed files with 77 additions and 0 deletions

7
.dockerignore Normal file
View File

@@ -0,0 +1,7 @@
Dockerfile
.dockerignore
node_modules
npm-debug.log
README.md
.next
.git