pysph / Dockerfile
guohanghui's picture
Update Dockerfile
26833c6 verified
Raw
History Blame Contribute Delete
609 Bytes
FROM python:3.10
RUN apt-get update && apt-get install -y \
build-essential \
libopenblas-dev \
&& rm -rf /var/lib/apt/lists/*
RUN useradd -m -u 1000 user
USER user
ENV PATH="/home/user/.local/bin:$PATH"
WORKDIR /app
RUN pip install --no-cache-dir --user --upgrade pip
COPY --chown=user ./requirements.txt requirements.txt
RUN pip install --no-cache-dir --user -r requirements.txt
RUN pip install --no-cache-dir --user pysph
COPY --chown=user ./pysph/mcp_output /app/pysph/mcp_output
ENV MCP_TRANSPORT=http
ENV MCP_PORT=7860
EXPOSE 7860
CMD ["python", "pysph/mcp_output/start_mcp.py"]