←back to thread

265 points tosh | 1 comments | | HN request time: 1.541s | source
Show context
nodesocket ◴[] No.44365968[source]
Is there no apt repo to install uv? My Docker builds using pip take around 2 minutes, not sure the juice is worth the squeeze upgrading to uv.

Current Dockerfile pip is as simple as:

    COPY --chown=python:python requirements.txt .
    RUN pip install --no-cache-dir --upgrade pip && \
        pip install --no-cache-dir --compile -r requirements.txt
    COPY --chown=python:python . .
    RUN python -m compileall -f .
replies(3): >>44366888 #>>44367429 #>>44368888 #
1. remram ◴[] No.44368888[source]
With a cache directory that can be 0 minute.

  RUN --mount=type=cache,target=/root/.cache/pip pip install ...