From cd20ecc53fe5e650b6052d517ae9051b6963a70b Mon Sep 17 00:00:00 2001 From: gugulethu Date: Sat, 21 Jun 2025 21:13:37 +0200 Subject: [PATCH] Update Dockerfile --- Dockerfile | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index b2d0909..4c14869 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,5 +1,5 @@ # Use the official Python image as a base -FROM python:3.11-slim +FROM python:3.11-slim AS builder # Set the working directory in the container WORKDIR /app @@ -19,3 +19,14 @@ RUN mkdocs build # Use Nginx as the web server FROM nginx:latest +# Copy the built MkDocs site from the builder stage +COPY --from=builder /app/site /usr/share/nginx/html + +# Copy custom Nginx configuration file (if needed) +COPY nginx.conf /etc/nginx/conf.d/default.conf + +# Expose port 80 +EXPOSE 80 + +# Start Nginx +CMD ["nginx", "-g", "daemon off;"]