docker-ddns-cloudflare/Dockerfile
2022-10-20 15:18:57 +02:00

20 lines
360 B
Docker

FROM node:18-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"]