mirror of
https://github.com/MetaCubeX/metacubexd.git
synced 2024-11-14 06:25:35 +08:00
20 lines
280 B
Docker
20 lines
280 B
Docker
|
FROM docker.io/node:alpine as builder
|
||
|
|
||
|
WORKDIR /build
|
||
|
|
||
|
COPY . .
|
||
|
|
||
|
RUN corepack enable
|
||
|
RUN corepack prepare pnpm@latest --activate
|
||
|
RUN pnpm install
|
||
|
RUN pnpm build
|
||
|
|
||
|
FROM docker.io/caddy:alpine
|
||
|
|
||
|
WORKDIR /srv
|
||
|
|
||
|
COPY --from=builder /build/dist/. .
|
||
|
COPY Caddyfile .
|
||
|
|
||
|
CMD ["caddy", "run"]
|