metacubexd/Dockerfile

21 lines
245 B
Docker
Raw Normal View History

FROM docker.io/oven/bun:alpine as builder
2023-08-30 00:40:47 +08:00
2024-02-01 18:27:32 +08:00
ENV HUSKY=0
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"]