# Build: run build.py to generate the static site FROM python:3.11-slim AS builder WORKDIR /app COPY . . RUN python3 build.py # Serve: bake the built site into nginx:alpine FROM nginx:alpine COPY --from=builder /app/site/ /usr/share/nginx/html/ COPY nginx.conf /etc/nginx/nginx.conf EXPOSE 80