Spaces:
Running
Running
Marc Skov Madsen
commited on
Commit
·
579007f
1
Parent(s):
f2bf47a
fix
Browse files- Dockerfile +1 -12
Dockerfile
CHANGED
@@ -2,11 +2,10 @@ 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)
|
7 |
RUN useradd -m -u 1000 user
|
8 |
-
|
9 |
-
# Switch to the "user" user
|
10 |
USER user
|
11 |
|
12 |
# Set home to the user's home directory
|
@@ -16,18 +15,8 @@ ENV HOME=/home/user \
|
|
16 |
|
17 |
WORKDIR $HOME/app
|
18 |
|
19 |
-
# Create and use a virtual environment (recommended approach)
|
20 |
-
RUN uv venv /home/user/app/.venv
|
21 |
-
|
22 |
-
# Use the virtual environment automatically
|
23 |
-
ENV VIRTUAL_ENV=/home/user/app/.venv
|
24 |
-
ENV PATH="/home/user/app/.venv/bin:$PATH"
|
25 |
-
|
26 |
COPY --chown=user config.yaml config.yaml
|
27 |
|
28 |
-
# Install packages in the virtual environment
|
29 |
-
RUN uv pip install git+https://github.com/MarcSkovMadsen/holoviz-mcp.git[panel-extensions]
|
30 |
-
|
31 |
# Run the update command
|
32 |
# RUN holoviz-mcp-update
|
33 |
|
|
|
2 |
|
3 |
# Install git for repository cloning
|
4 |
RUN apt-get update && apt-get install -y git && rm -rf /var/lib/apt/lists/*
|
5 |
+
RUN uv pip install --system git+https://github.com/MarcSkovMadsen/holoviz-mcp.git[panel-extensions]
|
6 |
|
7 |
# Set up a new user named "user" with user ID 1000 (required by Hugging Face Spaces)
|
8 |
RUN useradd -m -u 1000 user
|
|
|
|
|
9 |
USER user
|
10 |
|
11 |
# Set home to the user's home directory
|
|
|
15 |
|
16 |
WORKDIR $HOME/app
|
17 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
18 |
COPY --chown=user config.yaml config.yaml
|
19 |
|
|
|
|
|
|
|
20 |
# Run the update command
|
21 |
# RUN holoviz-mcp-update
|
22 |
|