chore(docker): tighten container build setup

This commit is contained in:
kuekhaoyang
2026-05-01 23:42:50 +08:00
parent a9b4e28b57
commit d80cf3dfcf
3 changed files with 28 additions and 16 deletions
+12 -2
View File
@@ -4,8 +4,18 @@ services:
build:
context: .
dockerfile: Dockerfile
target: runner
image: kvideo:latest
init: true
restart: always
ports:
- 3000:3000
- "3000:3000"
environment:
- NODE_ENV=production
NODE_ENV: production
PORT: 3000
healthcheck:
test: ["CMD-SHELL", "wget --spider --quiet http://127.0.0.1:3000/ || exit 1"]
interval: 30s
timeout: 5s
retries: 3
start_period: 30s