add npm dalam docker

This commit is contained in:
Saufi
2026-05-20 17:05:00 +08:00
parent fa0070acec
commit 154b2c650e
2 changed files with 12 additions and 1 deletions

View File

@@ -39,6 +39,17 @@ services:
- ./docker/nginx/default.conf:/etc/nginx/conf.d/default.conf:ro
- storage_data:/var/www/storage:ro
# ── Node.js Asset Builder (one-time, run manually) ────────────────────────
node-build:
image: node:lts-alpine
container_name: ecert_node_build
working_dir: /app
volumes:
- ./src:/app
command: sh -c "npm ci && npm run build"
profiles:
- build
# ── Queue Worker (production) ──────────────────────────────────────────────
queue:
container_name: ecert_queue