mirror of
https://github.com/aculix/ticket-monitoring.git
synced 2026-10-27 07:15:51 +00:00
GitHub Actions builds linux/amd64 and linux/arm64 on every push to main and pushes a single :latest tag to ghcr.io, so the container can be run without cloning or building. Tests gate the publish step.
15 lines
329 B
Docker
15 lines
329 B
Docker
FROM node:22-alpine
|
|
WORKDIR /app
|
|
|
|
COPY package.json package-lock.json ./
|
|
RUN npm ci --omit=dev
|
|
|
|
COPY src/ src/
|
|
|
|
ENV STATE_PATH=/data/state.json
|
|
VOLUME /data
|
|
EXPOSE 4733
|
|
|
|
# --env-file-if-exists so the container works with plain env vars when no .env is mounted.
|
|
CMD ["node", "--env-file-if-exists=.env", "src/index.js", "--loop"]
|