metacubexd/Dockerfile

22 lines
296 B
Docker
Raw Permalink Normal View History

FROM docker.io/node:20.5-alpine as builder
2023-08-30 00:40:47 +08:00
WORKDIR /build
COPY . .
RUN corepack enable
RUN corepack prepare pnpm@latest --activate
RUN pnpm install
RUN pnpm build
FROM docker.io/caddy:alpine
2023-09-01 17:46:49 +08:00
EXPOSE 80
2023-08-30 00:40:47 +08:00
WORKDIR /srv
COPY --from=builder /build/dist/. .
COPY Caddyfile .
CMD ["caddy", "run"]