mirror of
https://github.com/MetaCubeX/metacubexd.git
synced 2024-12-26 07:24:10 +08:00
20 lines
233 B
Docker
20 lines
233 B
Docker
FROM docker.io/oven/bun:alpine as builder
|
|
|
|
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"]
|