Files
blog/Dockerfile
2026-02-13 00:15:25 +01:00

17 lines
311 B
Docker

# Build static site with Bun
FROM oven/bun:1 AS builder
WORKDIR /app
COPY package.json bun.lock ./
RUN bun install --frozen-lockfile
COPY . .
RUN bun run generate
# Serve generated files
FROM nginx:alpine
COPY --from=builder /app/generated /usr/share/nginx/html
EXPOSE 80
CMD ["nginx", "-g", "daemon off;"]