add npm dalam docker
This commit is contained in:
@@ -39,6 +39,17 @@ services:
|
|||||||
- ./docker/nginx/default.conf:/etc/nginx/conf.d/default.conf:ro
|
- ./docker/nginx/default.conf:/etc/nginx/conf.d/default.conf:ro
|
||||||
- storage_data:/var/www/storage: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 Worker (production) ──────────────────────────────────────────────
|
||||||
queue:
|
queue:
|
||||||
container_name: ecert_queue
|
container_name: ecert_queue
|
||||||
|
|||||||
@@ -4,7 +4,7 @@
|
|||||||
###############################################################################
|
###############################################################################
|
||||||
FROM php:8.4-fpm
|
FROM php:8.4-fpm
|
||||||
|
|
||||||
LABEL org.opencontainers.image.title="eCert MBIP" \
|
LABEL org.opencontainers.image.title="mySijil MBIP" \
|
||||||
org.opencontainers.image.description="Sistem Pengurusan Sijil Digital MBIP"
|
org.opencontainers.image.description="Sistem Pengurusan Sijil Digital MBIP"
|
||||||
|
|
||||||
# ── System libraries ──────────────────────────────────────────────────────────
|
# ── System libraries ──────────────────────────────────────────────────────────
|
||||||
|
|||||||
Reference in New Issue
Block a user