Update
Browse files12 unmodified lines1314151617161718192039 unmodified lines6061626364656663646566676869707112 unmodified lines UV_CACHE_DIR=/tmp/uv-cache \ PORT=${PORT} \ TRANSPORT_SERVER_URL=${TRANSPORT_SERVER_URL} \ HF_HOME=/app/.cache \ HF_HUB_CACHE=/app/.cache/hub HF_HOME=/home/appuser/.cache \ HF_HUB_CACHE=/home/appuser/.cache/hub
# Install system dependenciesRUN apt-get update && apt-get install -y \39 unmodified linesRUN --mount=type=cache,target=/tmp/uv-cache \ uv sync --locked --no-editable --no-dev
# Create cache directories for Hugging Face with proper ownershipRUN mkdir -p /app/.cache /app/.cache/hub && \ chown -R appuser:appuser /app/.cache
# Switch to non-root userUSER appuser
# Create cache directories for Hugging Face in user home directoryRUN mkdir -p /home/appuser/.cache/hub /home/appuser/.cache/transformers /home/appuser/.cache/datasets
# Add virtual environment to PATHENV PATH="/app/.venv/bin:$PATH"
Dockerfile+5-6