mirror of
https://github.com/arthur-pbty/hub.git
synced 2026-06-18 13:46:30 +02:00
feat: configurer Docker pour le build et l'exécution de l'application Next.js
This commit is contained in:
+7
-6
@@ -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
|
||||
Reference in New Issue
Block a user