chapter-tracker/Dockerfile
pfych 040b427d97
All checks were successful
Build and Push Container / build (push) Successful in 1m1s
Reduce docker container size by ~100MB
2025-04-30 19:24:18 +10:00

23 lines
514 B
Docker

FROM node:20-alpine AS base
WORKDIR /checker
COPY package.json ./
COPY pnpm-lock.yaml ./
COPY src ./src
RUN npm install -g pnpm
RUN pnpm install
RUN pnpm run compile
FROM node:20-alpine AS app
LABEL org.opencontainers.image.source=https://git.pfy.ch/pfych/chapter-tracker
LABEL org.opencontainers.image.description="Ping a webhook when a new MangaDex chapter is released"
LABEL org.opencontainers.image.licenses=MIT
WORKDIR /checker
COPY --from=base /checker/.out/build.js build.js
CMD ["node", "build.js"]