add dockerfile

This commit is contained in:
2026-02-13 00:15:25 +01:00
parent 724500ae0b
commit 663b3e0320

16
Dockerfile Normal file
View File

@@ -0,0 +1,16 @@
# 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;"]