Marc Skov Madsen commited on
Commit
4b999cf
·
1 Parent(s): 3678a35
Files changed (1) hide show
  1. Dockerfile +4 -3
Dockerfile CHANGED
@@ -12,16 +12,17 @@ USER user
12
  # Set home to the user's home directory
13
  ENV HOME=/home/user \
14
  PATH=/home/user/.local/bin:$PATH \
15
- HOLOVIZ_MCP_USER_DIR=/home/user/app
 
16
 
17
  WORKDIR $HOME/app
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
  # Use the virtual environment's Python directly
27
- CMD [".venv/bin/python", "-m", "holoviz_mcp.serve", "--address", "0.0.0.0", "--port", "7860", "--allow-websocket-origin", "*", "--num-procs", "2"]
 
12
  # Set home to the user's home directory
13
  ENV HOME=/home/user \
14
  PATH=/home/user/.local/bin:$PATH \
15
+ HOLOVIZ_MCP_USER_DIR=/home/user/app \
16
+ UV_SYSTEM_PYTHON=1
17
 
18
  WORKDIR $HOME/app
19
 
20
  COPY --chown=user config.yaml config.yaml
21
 
22
+ RUN uv pip install git+https://github.com/MarcSkovMadsen/holoviz-mcp.git[panel-extensions]
23
 
24
  # Run the update command
25
  # RUN .venv/bin/holoviz-mcp-update
26
 
27
  # Use the virtual environment's Python directly
28
+ CMD ["holoviz-mcp-serve", "--address", "0.0.0.0", "--port", "7860", "--allow-websocket-origin", "*", "--num-procs", "2"]