FROM python:3.11-slim AS build

WORKDIR /build

RUN pip install --no-cache-dir mkdocs-material mkdocs_pymdownx_material_extras

COPY mkdocs.yml ./
COPY docs ./docs
COPY theme ./theme

RUN mkdocs build

FROM nginx:alpine

COPY --from=build /build/site /usr/share/nginx/html

EXPOSE 80
