Update Dockerfile

This commit is contained in:
gugulethu 2025-06-22 00:07:09 +02:00
commit 1978b733d2

View file

@ -1 +1,15 @@
FROM python:3.11-slim WORKDIR /app COPY --from=builder /app/site /app EXPOSE 8000 CMD ["python3", "-m", "http.server", "8000", "--directory", "/app"] FROM python:3.11-slim AS builder
WORKDIR /app
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
COPY ./site .
RUN mkdocs build
EXPOSE 8000
CMD ["mkdocs", "serve", "--host", "0.0.0.0", "--port", "8000"]