metacubexd/Dockerfile

23 lines
303 B
Docker
Raw Permalink Normal View History

2024-04-08 17:34:57 +08:00
FROM docker.io/node:alpine as builder
2023-08-30 00:40:47 +08:00
2024-02-01 18:27:32 +08:00
ENV HUSKY=0
2023-08-30 00:40:47 +08:00
WORKDIR /build
COPY . .
2024-04-08 17:34:57 +08:00
RUN corepack enable
RUN corepack prepare pnpm@latest --activate
RUN pnpm install
RUN pnpm build
2023-08-30 00:40:47 +08:00
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"]