# --------------------------------------------------------------------------- # aetos-docs — serves both the HTML documentation portal (nginx) and the # per-library MCP servers (FastMCP streamable-http). # --------------------------------------------------------------------------- FROM python:3.13-slim LABEL maintainer="Aetoskia " LABEL description="Unified documentation portal and MCP server for Aetoskia projects" # --- system deps ----------------------------------------------------------- RUN apt-get update && \ apt-get install -y --no-install-recommends nginx && \ rm -rf /var/lib/apt/lists/* # --- python deps ----------------------------------------------------------- WORKDIR /app ARG PIP_USERNAME ARG PIP_PASSWORD ARG PIP_REPO_URL COPY requirements.txt . RUN pip install --no-cache-dir uv && \ uv pip install --system -r requirements.txt # --- application files ----------------------------------------------------- COPY main.py core.py config.py collect.py config.yml ./ COPY nginx.conf /etc/nginx/conf.d/default.conf RUN rm -f /etc/nginx/sites-enabled/default # --- collected documentation tree ----------------------------------------- COPY _index /usr/share/nginx/html/ COPY libs /usr/share/nginx/html/libs COPY apis /usr/share/nginx/html/apis COPY wiki /usr/share/nginx/html/wiki COPY tutorials /usr/share/nginx/html/tutorials # --- MCP bundles ----------------------------------------------------------- COPY mcp /app/mcp EXPOSE 8000 8001 8002 8003 8004 8005 8006 9000 CMD ["python", "main.py"]