fix UV error
Browse files- Dockerfile +3 -3
Dockerfile
CHANGED
@@ -20,7 +20,8 @@ RUN apt-get update && \
|
|
20 |
RUN mkdir -p /.cache/uv
|
21 |
|
22 |
# Copy only the pyproject.toml file first to leverage Docker layer caching
|
23 |
-
COPY pyproject.toml
|
|
|
24 |
|
25 |
# Install Python packages as root using uv sync
|
26 |
RUN uv sync && \
|
@@ -30,7 +31,6 @@ RUN uv sync && \
|
|
30 |
RUN useradd -m -u 1000 user && \
|
31 |
chown -R user:user /.cache/uv
|
32 |
|
33 |
-
# Switch to the non-root user
|
34 |
USER user
|
35 |
|
36 |
# --- Environment Setup ---
|
@@ -54,7 +54,7 @@ COPY --chown=user:user ./chainlit_ui.py ./chainlit_ui.py
|
|
54 |
COPY --chown=user:user ./mcp.json ./mcp.json
|
55 |
COPY --chown=user:user ./src ./src
|
56 |
COPY --chown=user:user ./public ./public
|
57 |
-
|
58 |
# --- Runtime ---
|
59 |
# Expose the port Chainlit will run on (standard HF Spaces port)
|
60 |
EXPOSE 7860
|
|
|
20 |
RUN mkdir -p /.cache/uv
|
21 |
|
22 |
# Copy only the pyproject.toml file first to leverage Docker layer caching
|
23 |
+
COPY pyproject.toml ./
|
24 |
+
COPY README.md ./
|
25 |
|
26 |
# Install Python packages as root using uv sync
|
27 |
RUN uv sync && \
|
|
|
31 |
RUN useradd -m -u 1000 user && \
|
32 |
chown -R user:user /.cache/uv
|
33 |
|
|
|
34 |
USER user
|
35 |
|
36 |
# --- Environment Setup ---
|
|
|
54 |
COPY --chown=user:user ./mcp.json ./mcp.json
|
55 |
COPY --chown=user:user ./src ./src
|
56 |
COPY --chown=user:user ./public ./public
|
57 |
+
|
58 |
# --- Runtime ---
|
59 |
# Expose the port Chainlit will run on (standard HF Spaces port)
|
60 |
EXPOSE 7860
|