FROM docker.m.daocloud.io/library/python:3.12-slim-bookworm ENV PYTHONDONTWRITEBYTECODE=1 \ PYTHONUNBUFFERED=1 WORKDIR /app COPY topology_api/requirements.txt . RUN pip install --no-cache-dir -r requirements.txt COPY topology_api/ topology_api/ COPY data/wiki/guanghan_topology_demo.html data/wiki/ EXPOSE 8080 CMD ["gunicorn", "--bind", "0.0.0.0:8080", "--workers", "2", "--timeout", "30", "topology_api.app:create_app()"]