docker-ddns-cloudflare/Dockerfile

22 lines
373 B
Docker
Raw Permalink Normal View History

2022-02-07 12:14:23 +00:00
FROM node:16-alpine as builder
2019-01-22 11:37:36 +00:00
2020-07-23 10:52:07 +00:00
WORKDIR /app
2019-01-22 11:37:36 +00:00
2022-02-07 12:14:23 +00:00
ADD ./package.json ./pnpm-lock.yaml ./
RUN npm exec pnpm install --frozen-lockfile
2021-10-22 15:47:49 +00:00
ADD . .
2022-02-07 12:14:23 +00:00
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
2019-01-22 11:37:36 +00:00
2021-10-22 15:47:49 +00:00
CMD ["node", "."]