docker-ddns-cloudflare/Dockerfile
2023-06-24 16:19:36 +02:00

20 lines
360 B
Docker

FROM node:20-alpine as base
WORKDIR /app
RUN npm -g i pnpm
FROM base as builder
ADD ./package.json ./pnpm-lock.yaml ./
RUN pnpm install --frozen-lockfile
ADD . .
RUN pnpm run build
FROM base
ADD ./package.json ./pnpm-lock.yaml ./
RUN pnpm install --frozen-lockfile --prod
COPY --from=builder /app/dist/ /app/dist/
STOPSIGNAL SIGTERM
CMD ["pnpm", "start"]