docker-ddns-cloudflare/Dockerfile
2022-02-07 13:14:23 +01:00

22 lines
373 B
Docker

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