update build production

This commit is contained in:
Puechberty Arthur
2026-06-10 21:19:54 +02:00
parent 739fa54719
commit 0f5257c099
5 changed files with 54 additions and 15 deletions
+14 -12
View File
@@ -1,20 +1,22 @@
services:
visio:
image: node:20-alpine
container_name: visio-app
working_dir: /app
volumes:
- ./:/app
- /app/node_modules
build:
context: .
dockerfile: Dockerfile
container_name: visio
ports:
- "3010:3000"
environment:
- PORT=3000
command: sh -c "npm install && npm run build && npm start"
- "${APP_PORT}:3000"
env_file:
- .env
restart: unless-stopped
healthcheck:
test: ["CMD", "wget", "-q", "--spider", "http://localhost:3000"]
test: ["CMD", "wget", "-q", "--spider", "http://localhost:3000/"]
interval: 30s
timeout: 10s
retries: 3
start_period: 40s
start_period: 20s