chore: dockerize Next.js app (multi-stage build, standalone output)

- Dockerfile: 3-stage build (deps → builder → runner) using node:20-alpine
- .dockerignore: excludes node_modules, .next, secrets, graphify-out
- docker-compose.yml: runtime secrets via env, build-time NEXT_PUBLIC_* via args
- Render worker service pre-wired (commented out, opt-in)
This commit is contained in:
Soroush.Asadi
2026-05-27 10:17:07 +03:30
parent 36e264f3e3
commit 53ea78a00d
3 changed files with 151 additions and 0 deletions
+34
View File
@@ -0,0 +1,34 @@
# Source control
.git
.gitignore
# Build output (rebuilt inside container)
.next
out
# Dependencies (reinstalled inside container)
node_modules
# Local secrets — never bake into image
.env
.env.local
.env*.local
# Dev / tooling
npm-debug.log*
yarn-debug.log*
yarn-error.log*
# Generated / large files
graphify-out
coverage
.vercel
# OS
.DS_Store
Thumbs.db
# Docker files themselves
Dockerfile
.dockerignore
docker-compose*.yml