Files
wms-app/docker/node/Dockerfile
T
Thanakorn 136084f259 Add Docker Compose production stack (php-apache, mariadb, node/pm2)
Single-command deploy: docker compose up -d --build brings up the LEMP
stack plus the Node realtime/scheduler service. app/config.php and DB
secrets are generated from .env at container start, never baked into
the image or committed.
2026-08-17 13:44:14 +07:00

13 lines
195 B
Docker

FROM node:20-alpine
RUN npm install -g pm2
WORKDIR /app
COPY nodejs/package.json nodejs/package-lock.json ./
RUN npm ci --omit=dev
COPY nodejs/ ./
CMD ["pm2-runtime", "ecosystem.config.js"]