Fix doxkerfile to serve the site right.

This commit is contained in:
g* 2025-10-20 10:16:32 +02:00
commit 116dc5c05c

View file

@ -1,19 +1,12 @@
FROM python:3.11-slim AS builder
WORKDIR /app
COPY requirements.txt .
RUN pip install --no-cache-dir --upgrade -r requirements.txt
COPY . .
RUN mkdocs build
FROM nginx:alpine
RUN rm -rf /usr/share/nginx/html/*
COPY --from=builder /app/site /usr/share/nginx/html
EXPOSE 80
CMD ["nginx", "-g", "daemon off;"]