mirror of
https://github.com/MetaCubeX/metacubexd.git
synced 2024-12-27 19:44:12 +08:00
23 lines
303 B
Docker
23 lines
303 B
Docker
FROM docker.io/node:alpine as builder
|
|
|
|
ENV HUSKY=0
|
|
WORKDIR /build
|
|
|
|
COPY . .
|
|
|
|
RUN corepack enable
|
|
RUN corepack prepare pnpm@latest --activate
|
|
RUN pnpm install
|
|
RUN pnpm build
|
|
|
|
FROM docker.io/caddy:alpine
|
|
|
|
EXPOSE 80
|
|
|
|
WORKDIR /srv
|
|
|
|
COPY --from=builder /build/dist/. .
|
|
COPY Caddyfile .
|
|
|
|
CMD ["caddy", "run"]
|