2026-06-21 14:45:00 +02:00
|
|
|
FROM oven/bun:1.3.14-alpine AS builder
|
|
|
|
|
|
|
|
|
|
# git is required by VitePress lastUpdated (reads commit timestamps)
|
|
|
|
|
RUN apk add --no-cache git
|
|
|
|
|
|
|
|
|
|
WORKDIR /app
|
|
|
|
|
|
2026-06-26 20:42:01 +02:00
|
|
|
COPY package.json ./
|
2026-06-21 14:45:00 +02:00
|
|
|
RUN bun install
|
|
|
|
|
|
2026-06-26 20:42:01 +02:00
|
|
|
COPY . ./
|
2026-06-21 14:45:00 +02:00
|
|
|
RUN bun run build
|
|
|
|
|
|
|
|
|
|
FROM nginx:alpine AS runner
|
|
|
|
|
|
|
|
|
|
COPY --from=builder /app/.vitepress/dist /usr/share/nginx/html
|
2026-06-26 20:42:01 +02:00
|
|
|
COPY nginx.conf /etc/nginx/conf.d/default.conf
|
2026-06-21 14:45:00 +02:00
|
|
|
|
|
|
|
|
EXPOSE 80
|
|
|
|
|
|
|
|
|
|
CMD ["nginx", "-g", "daemon off;"]
|