docker: подготовка к запуску в контейнере (Next.js)
- Dockerfile: multi-stage (deps/build/runner), standalone-сборка, non-root user - next.config.mjs: output: 'standalone' - docker-compose.yml: порт 3000, env из .env.local - .dockerignore: node_modules, .next, .env*, кэш - проверено: npm run build прошёл, standalone артефакт на месте
This commit is contained in:
@@ -0,0 +1,11 @@
|
||||
.git
|
||||
.gitignore
|
||||
.idea
|
||||
node_modules
|
||||
.next
|
||||
out
|
||||
.env*
|
||||
.vercel
|
||||
*.log
|
||||
.next
|
||||
npm-debug.log*
|
||||
Reference in New Issue
Block a user