diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..765e3aa --- /dev/null +++ b/Dockerfile @@ -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;"]