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;"]