Marc Skov Madsen commited on
Commit
a95cf5a
·
1 Parent(s): f1cc92e
Files changed (1) hide show
  1. Dockerfile +4 -4
Dockerfile CHANGED
@@ -1,6 +1,6 @@
1
  FROM ghcr.io/astral-sh/uv:python3.13-bookworm-slim
2
 
3
- # Install git for repository cloning
4
  RUN apt-get update && apt-get install -y git && rm -rf /var/lib/apt/lists/*
5
 
6
  # Set up a new user named "user" with user ID 1000 (required by Hugging Face Spaces)
@@ -18,9 +18,9 @@ WORKDIR $HOME/app
18
 
19
  COPY --chown=user config.yaml config.yaml
20
 
21
- RUN uv tool install git+https://github.com/MarcSkovMadsen/holoviz-mcp[panel-extensions]
22
 
23
  # Run the update command
24
- # RUN uvx --from holoviz-mcp holoviz-mcp-update
25
 
26
- CMD ["uvx", "--from", "holoviz-mcp", "holoviz-mcp-serve", "--address", "0.0.0.0", "--port", "7860", "--allow-websocket-origin", "*", "--num-procs", "2"]
 
1
  FROM ghcr.io/astral-sh/uv:python3.13-bookworm-slim
2
 
3
+ # Install git for repository cloning and install the tool as root
4
  RUN apt-get update && apt-get install -y git && rm -rf /var/lib/apt/lists/*
5
 
6
  # Set up a new user named "user" with user ID 1000 (required by Hugging Face Spaces)
 
18
 
19
  COPY --chown=user config.yaml config.yaml
20
 
21
+ RUN uv venv && . .venv/bin/activate && uv pip install git+https://github.com/MarcSkovMadsen/holoviz-mcp.git[panel-extensions]
22
 
23
  # Run the update command
24
+ # RUN .venv/bin/holoviz-mcp-update
25
 
26
+ CMD [".venv/bin/holoviz-mcp-serve", "--address", "0.0.0.0", "--port", "7860", "--allow-websocket-origin", "*", "--num-procs", "2"]