FROM python:3.11-slim AS builder
WORKDIR /app
COPY . .
RUN python3 build.py

FROM nginx:alpine
COPY --from=builder /app/site/ /usr/share/nginx/html/
COPY nginx.conf /etc/nginx/nginx.conf
EXPOSE 80
