mirror of
https://github.com/MetaCubeX/metacubexd.git
synced 2024-11-14 06:25:35 +08:00
21 lines
245 B
Docker
21 lines
245 B
Docker
FROM docker.io/oven/bun:alpine as builder
|
|
|
|
ENV HUSKY=0
|
|
WORKDIR /build
|
|
|
|
COPY . .
|
|
|
|
RUN bun install
|
|
RUN bun run build
|
|
|
|
FROM docker.io/caddy:alpine
|
|
|
|
EXPOSE 80
|
|
|
|
WORKDIR /srv
|
|
|
|
COPY --from=builder /build/dist/. .
|
|
COPY Caddyfile .
|
|
|
|
CMD ["caddy", "run"]
|