chapter-tracker/Dockerfile

22 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"]