mirror of
https://github.com/cupcakearmy/docker-ddns-cloudflare.git
synced 2024-12-22 07:46:24 +00:00
22 lines
373 B
Docker
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", "."]
|