feat: configurer Docker pour le build et l'exécution de l'application Next.js

This commit is contained in:
Puechberty Arthur
2026-03-31 19:26:44 +02:00
parent 6e2147a489
commit b54744a6d8
3 changed files with 49 additions and 7 deletions
+7 -6
View File
@@ -1,10 +1,11 @@
services:
web:
image: node:20-alpine
working_dir: /app
build: .
ports:
- "3000:3000"
volumes:
- ./:/app
ports:
- "3004:3000"
command: sh -c "npm install && npm run build && npm start"
restart: unless-stopped
- /app/node_modules
environment:
- NODE_ENV=development
command: npm run dev