metacubexd/Dockerfile

20 lines
233 B
Docker
Raw Normal View History

FROM docker.io/oven/bun:alpine as builder
2023-08-30 00:40:47 +08:00
WORKDIR /build
COPY . .
RUN bun install
RUN bun run 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"]