From 004319adaeb431a88972a54a3499331806abeb89 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sascha=20I=C3=9Fbr=C3=BCcker?= Date: Sat, 23 Aug 2025 07:58:26 +0200 Subject: [PATCH] Install uv via installer --- docker/alpine.Dockerfile | 7 ++++--- docker/default.Dockerfile | 7 ++++--- 2 files changed, 8 insertions(+), 6 deletions(-) diff --git a/docker/alpine.Dockerfile b/docker/alpine.Dockerfile index 3e82f1f..52588ba 100644 --- a/docker/alpine.Dockerfile +++ b/docker/alpine.Dockerfile @@ -18,11 +18,12 @@ FROM python:3.13.7-alpine3.21 AS build-deps # libffi-dev openssl-dev rust cargo: build Python cryptography from source RUN apk update && apk add alpine-sdk linux-headers libpq-dev pkgconfig icu-dev sqlite-dev libffi-dev openssl-dev rust cargo WORKDIR /etc/linkding -# install uv -COPY --from=ghcr.io/astral-sh/uv:latest /uv /bin/ +# install uv, use installer script for now as distroless images are not availabe for armv7 +ADD https://astral.sh/uv/0.8.13/install.sh /uv-installer.sh +RUN chmod +x /uv-installer.sh && /uv-installer.sh # install python dependencies COPY pyproject.toml uv.lock ./ -RUN uv sync --no-dev +RUN /root/.local/bin/uv sync --no-dev FROM build-deps AS compile-icu diff --git a/docker/default.Dockerfile b/docker/default.Dockerfile index a00aaf7..9d54587 100644 --- a/docker/default.Dockerfile +++ b/docker/default.Dockerfile @@ -20,11 +20,12 @@ RUN apt-get update && apt-get -y install build-essential pkg-config libpq-dev li RUN curl https://sh.rustup.rs -sSf | sh -s -- -y ENV PATH="/root/.cargo/bin:${PATH}" WORKDIR /etc/linkding -# install uv -COPY --from=ghcr.io/astral-sh/uv:latest /uv /bin/ +# install uv, use installer script for now as distroless images are not availabe for armv7 +ADD https://astral.sh/uv/0.8.13/install.sh /uv-installer.sh +RUN chmod +x /uv-installer.sh && /uv-installer.sh # install python dependencies COPY pyproject.toml uv.lock ./ -RUN uv sync --no-dev +RUN /root/.local/bin/uv sync --no-dev FROM build-deps AS compile-icu