From fe1b42fff918453f5e085907954b75c37ef4a22c Mon Sep 17 00:00:00 2001 From: kilian Date: Sun, 19 Oct 2025 21:59:53 +0200 Subject: [PATCH] changed the UV install step to implicit pull with binary copy --- backend/Dockerfile | 16 ++++------------ 1 file changed, 4 insertions(+), 12 deletions(-) diff --git a/backend/Dockerfile b/backend/Dockerfile index 7069cd0..98591d8 100644 --- a/backend/Dockerfile +++ b/backend/Dockerfile @@ -1,16 +1,8 @@ -FROM python:3.12-slim-bookworm +# use python 3.12 as a base image +FROM docker.io/python:3.12-alpine -# The installer requires curl (and certificates) to download the release archive -RUN apt-get update && apt-get install -y --no-install-recommends curl ca-certificates - -# Download the latest installer -ADD https://astral.sh/uv/install.sh /uv-installer.sh - -# Run the installer then remove it -RUN sh /uv-installer.sh && rm /uv-installer.sh - -# Ensure the installed binary is on the `PATH` -ENV PATH="/root/.local/bin/:$PATH" +# use the latest version of uv, independently of the python version +COPY --from=ghcr.io/astral-sh/uv:latest /uv /uvx /bin/ # Set the working directory WORKDIR /app