Spaces:
Sleeping
Sleeping
| FROM ghcr.io/astral-sh/uv:python3.13-bookworm-slim | |
| # Install git for repository cloning and install the tool as root | |
| RUN apt-get update && apt-get install -y git && rm -rf /var/lib/apt/lists/* | |
| # Set up a new user named "user" with user ID 1000 (required by Hugging Face Spaces) | |
| RUN useradd -m -u 1000 user | |
| # Switch to the "user" user | |
| USER user | |
| # Set home to the user's home directory | |
| ENV HOME=/home/user \ | |
| PATH=/home/user/.local/bin:$PATH \ | |
| HOLOVIZ_MCP_USER_DIR=/home/user/app \ | |
| UV_SYSTEM_PYTHON=1 | |
| WORKDIR $HOME/app | |
| COPY --chown=user config.yaml config.yaml | |
| RUN uv pip install git+https://github.com/MarcSkovMadsen/holoviz-mcp.git[panel-extensions] | |
| # Run the update command | |
| # RUN .venv/bin/holoviz-mcp-update | |
| # Use the virtual environment's Python directly | |
| CMD ["holoviz-mcp-serve", "--address", "0.0.0.0", "--port", "7860", "--allow-websocket-origin", "*", "--num-procs", "2"] |