mirror of
https://github.com/arthur-pbty/moon.git
synced 2026-06-03 23:36:19 +02:00
Ajout de Dockerfile pour la construction et l'exécution de l'application Next.js
This commit is contained in:
+7
-17
@@ -1,21 +1,11 @@
|
||||
services:
|
||||
moon:
|
||||
image: node:20-alpine
|
||||
working_dir: /app
|
||||
restart: unless-stopped
|
||||
web:
|
||||
build: .
|
||||
ports:
|
||||
- "3013:3000"
|
||||
environment:
|
||||
NEXT_TELEMETRY_DISABLED: "1"
|
||||
HOSTNAME: 0.0.0.0
|
||||
PORT: "3000"
|
||||
command: >
|
||||
sh -c "npm ci && npm run build && npx next start -H 0.0.0.0 -p 3000"
|
||||
- "3000:3000"
|
||||
volumes:
|
||||
- ./:/app
|
||||
- node_modules:/app/node_modules
|
||||
- next_data:/app/.next
|
||||
|
||||
volumes:
|
||||
node_modules:
|
||||
next_data:
|
||||
- /app/node_modules
|
||||
environment:
|
||||
- NODE_ENV=development
|
||||
command: npm run dev
|
||||
Reference in New Issue
Block a user