feat: configure Docker setup and update dependencies for Next.js application

This commit is contained in:
Puechberty Arthur
2026-03-31 22:24:25 +02:00
parent 5bf8a8d60f
commit aa180c5681
6 changed files with 124 additions and 81 deletions
+8 -7
View File
@@ -1,10 +1,11 @@
services:
nextjs-app:
image: node:20
working_dir: /app
web:
build: .
ports:
- "3000:3000"
volumes:
- ./:/app
command: sh -c "npm install && npm run build && npm run start"
ports:
- "3003:3000"
restart: unless-stopped
- /app/node_modules
environment:
- NODE_ENV=development
command: npm run dev