blanchon commited on
Commit
abf3b59
·
1 Parent(s): d0903bf
Files changed (1) hide show
  1. Dockerfile +4 -3
Dockerfile CHANGED
@@ -13,7 +13,8 @@ ENV PYTHONUNBUFFERED=1 \
13
  UV_CACHE_DIR=/tmp/uv-cache \
14
  PORT=${PORT} \
15
  TRANSPORT_SERVER_URL=${TRANSPORT_SERVER_URL} \
16
- HF_HOME=/app/.cache
 
17
 
18
  # Install system dependencies
19
  RUN apt-get update && apt-get install -y \
@@ -60,8 +61,8 @@ RUN --mount=type=cache,target=/tmp/uv-cache \
60
  uv sync --locked --no-editable --no-dev
61
 
62
  # Create cache directories for Hugging Face with proper ownership
63
- RUN mkdir -p /app/.cache && \
64
- chown -R appuser:appuser /app/.cache
65
 
66
  # Switch to non-root user
67
  USER appuser
 
13
  UV_CACHE_DIR=/tmp/uv-cache \
14
  PORT=${PORT} \
15
  TRANSPORT_SERVER_URL=${TRANSPORT_SERVER_URL} \
16
+ HF_HOME=/app/.cache \
17
+ HF_HUB_CACHE=/app/.cache/hub
18
 
19
  # Install system dependencies
20
  RUN apt-get update && apt-get install -y \
 
61
  uv sync --locked --no-editable --no-dev
62
 
63
  # Create cache directories for Hugging Face with proper ownership
64
+ RUN mkdir -p /app/.cache /app/.cache/hub && \
65
+ chown -R appuser:appuser /app/.cache
66
 
67
  # Switch to non-root user
68
  USER appuser