Update
Browse files12 unmodified lines131415161718192039 unmodified lines6061626364656667686970717212 unmodified linesUV_CACHE_DIR=/tmp/uv-cache \PORT=${PORT} \TRANSPORT_SERVER_URL=${TRANSPORT_SERVER_URL} \HF_HOME=/app/.cache \HF_HUB_CACHE=/app/.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# Add virtual environment to PATHENV PATH="/app/.venv/bin:$PATH"12 unmodified lines131415161718192039 unmodified lines60616263646566676869707112 unmodified linesUV_CACHE_DIR=/tmp/uv-cache \PORT=${PORT} \TRANSPORT_SERVER_URL=${TRANSPORT_SERVER_URL} \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# 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