arkanum/Dockerfile.vitepress
OCram85 c9614c19ff
All checks were successful
ci/woodpecker/pr/docs Pipeline was successful
ci/woodpecker/pr/ci Pipeline was successful
remove debug output
2024-05-06 16:15:29 +02:00

15 lines
381 B
Docker

FROM oven/bun:1 as builder
COPY . /app
WORKDIR /app
ENV NODE_ENV=production
RUN bun install --frozen-lockfile
RUN bun run --vite docs:build
FROM caddy:2.7.6-alpine as prod
COPY --from=builder /app/docs/.vitepress/dist/ /arkanum-docs/
COPY Caddyfile /etc/caddy
HEALTHCHECK --interval=15s --timeout=3s \
CMD wget --no-verbose --tries=1 --spider http://localhost:8080/ || exit 1