Download Dockerfile from notsn/XCos_MCP: direct link, hf CLI and curl.
- Browser
- Download file 535 Bytes
-
https://huggingface.co/spaces/notsn/XCos_MCP/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/notsn/XCos_MCP/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/notsn/XCos_MCP/resolve/main/Dockerfile
535 Bytes
| FROM python:3.11-slim-bookworm | |
| ENV PYTHONUNBUFFERED=1 \ | |
| PIP_NO_CACHE_DIR=1 \ | |
| PORT=7860 \ | |
| XCOS_SERVER_MODE=http \ | |
| XCOS_VALIDATION_MODE=remote \ | |
| XCOS_SCILAB_SERVICE_URL=https://notsn-headless_scilab.hf.space \ | |
| XCOS_SCILAB_TRUSTED_UPSTREAM_ID=xcos-mcp-space \ | |
| XCOS_SCILAB_BEARER_TOKEN=CHANGE_ME_SCILAB_TOKEN | |
| RUN useradd --create-home --shell /bin/bash user | |
| WORKDIR /app | |
| COPY . /app | |
| RUN chown -R user:user /app && \ | |
| pip install . | |
| USER user | |
| ENV HOME=/home/user | |
| EXPOSE 7860 | |
| CMD ["python", "server.py"] | |