Aasher commited on
Commit
51800ac
·
1 Parent(s): 2cb4410

fix UV error

Browse files
Files changed (1) hide show
  1. 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
- COPY --chown=user:user ./README.md ./README.md
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