generated from Templates/Baseline
OCram85
ea513c90ac
### 📖 Summary - updatee changelog - add blog post - update guides ### 📑 Test Plan ✅ CI pipeline tests (Default) ### 💬 Details _No response_ ### 📚 Additional Notes _No response_ Reviewed-on: #122
18 lines
416 B
Docker
18 lines
416 B
Docker
FROM oven/bun:1 AS builder
|
|
|
|
ARG CI
|
|
ARG CI_COMMIT_PULL_REQUEST
|
|
|
|
COPY . /app
|
|
WORKDIR /app
|
|
ENV NODE_ENV=production
|
|
RUN bun install --frozen-lockfile
|
|
RUN bun run --vite docs:build
|
|
|
|
FROM caddy:2.8.4-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
|