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