From 2532c7d79b5204958dd5ba6b173f76e652b60540 Mon Sep 17 00:00:00 2001 From: catus felis Date: Sat, 1 Feb 2025 15:53:20 +0000 Subject: [PATCH] Fixes Dockerfile --- .devcontainer/Dockerfile | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/.devcontainer/Dockerfile b/.devcontainer/Dockerfile index 921ee8a..f63ba70 100644 --- a/.devcontainer/Dockerfile +++ b/.devcontainer/Dockerfile @@ -19,7 +19,14 @@ COPY requirements.txt . COPY pyproject.toml . #RUN python -m pip install -r requirements.txt -COPY --from=ghcr.io/astral-sh/uv:latest/uv/uvx/bin/ +# 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" RUN uv sync && source .venv/bin/activate