graph-theory / Dockerfile
ghh1125's picture
Upload 14 files
22ea217 verified
FROM python:3.11-slim
ENV PYTHONDONTWRITEBYTECODE=1
ENV PYTHONUNBUFFERED=1
WORKDIR /app
RUN useradd -m -u 1000 appuser
COPY requirements.txt /app/requirements.txt
RUN pip install --no-cache-dir -r /app/requirements.txt
COPY graph-theory /app/graph-theory
COPY app.py /app/app.py
RUN chown -R appuser:appuser /app
USER appuser
ENV MCP_TRANSPORT=http
ENV MCP_PORT=7860
EXPOSE 7860
ENTRYPOINT ["python", "graph-theory/mcp_output/start_mcp.py"]