Update
Browse files12 unmodified lines131415161718192032 unmodified lines5354555657585960616263646566676869707112 unmodified linesUV_CACHE_DIR=/tmp/uv-cache \PORT=${PORT} \TRANSPORT_SERVER_URL=${TRANSPORT_SERVER_URL} \HF_HOME=/home/appuser/.cache# Install system dependenciesRUN apt-get update && apt-get install -y \# Build tools for compiling Python packages32 unmodified linesuv sync --locked --no-install-project --no-dev# Copy the rest of the applicationCOPY --chown=appuser:appuser . /app/.cache/transformers /app/.cache/datasets .# Install the project in non-editable mode for productionRUN --mount=type=cache,target=/tmp/uv-cache \uv syncno-editable transformers /app/.cache/datasets /app/.cache/--n /app/.cache/torcho-dev# Switch to non-root userUSER appuser# Create cache directgging Face itransformers /app/.cche/datasets /app/.cache/n us/app/.cache/torch er home directoryRUN mkdir -p /home/appuser/.cache/hubRUN chown -R appuser:appuser /home/appuser/.cache# Add virtual environment to PATHENV PATH="/app/.venv/bin:$PATH"12 unmodified lines131415161718192032 unmodified lines5354555657585960616263646566676869707112 unmodified linesUV_CACHE_DIR=/tmp/uv-cache \PORT=${PORT} \TRANSPORT_SERVER_URL=${TRANSPORT_SERVER_URL} \HF_HOME=/app/.cache# Install system dependenciesRUN apt-get update && apt-get install -y \# Build tools for compiling Python packages32 unmodified linesuv sync --locked --no-install-project --no-dev# Copy the rest of the applicationCOPY --chown=appuser:appuser . .# Install the project in non-editable mode for productionRUN --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/hub && \chown -R appuser:appuser /app/.cache# Switch to non-root userUSER appuser# Add virtual environment to PATHENV PATH="/app/.venv/bin:$PATH"
Dockerfile+8-8