3 ms·
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 Dockerfi
by nodesocket 1y ago
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 .
- cpburns2009 1y agouv is not in Debian's or Ubuntu's apt repositories to my knowledge. What I do instead because I don't like piping shell scripts from URLs is "pip install --upgrade pip uv", and then run "uv pip ...".
- zanie 1y agoInstallation in Docker just looks like COPY --from=ghcr.io/astral-sh/uv:latest /uv /uvx /bin/ https://docs.astral.sh/uv/guides/integration/docker/#using-uv-in-docker https://docs.astral.sh/uv/guides/integration/docker/#using-u... (We'd recommend pinning the version or SHA in production)
- remram 1y agoWith a cache directory that can be 0 minute. RUN --mount=type=cache,target=/root/.cache/pip pip install ...