mirror of
https://github.com/sissbruecker/linkding.git
synced 2025-11-17 11:34:03 +01:00
Install uv via installer
This commit is contained in:
@@ -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
|
# 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
|
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
|
WORKDIR /etc/linkding
|
||||||
# install uv
|
# install uv, use installer script for now as distroless images are not availabe for armv7
|
||||||
COPY --from=ghcr.io/astral-sh/uv:latest /uv /bin/
|
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
|
# install python dependencies
|
||||||
COPY pyproject.toml uv.lock ./
|
COPY pyproject.toml uv.lock ./
|
||||||
RUN uv sync --no-dev
|
RUN /root/.local/bin/uv sync --no-dev
|
||||||
|
|
||||||
|
|
||||||
FROM build-deps AS compile-icu
|
FROM build-deps AS compile-icu
|
||||||
|
|||||||
@@ -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
|
RUN curl https://sh.rustup.rs -sSf | sh -s -- -y
|
||||||
ENV PATH="/root/.cargo/bin:${PATH}"
|
ENV PATH="/root/.cargo/bin:${PATH}"
|
||||||
WORKDIR /etc/linkding
|
WORKDIR /etc/linkding
|
||||||
# install uv
|
# install uv, use installer script for now as distroless images are not availabe for armv7
|
||||||
COPY --from=ghcr.io/astral-sh/uv:latest /uv /bin/
|
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
|
# install python dependencies
|
||||||
COPY pyproject.toml uv.lock ./
|
COPY pyproject.toml uv.lock ./
|
||||||
RUN uv sync --no-dev
|
RUN /root/.local/bin/uv sync --no-dev
|
||||||
|
|
||||||
|
|
||||||
FROM build-deps AS compile-icu
|
FROM build-deps AS compile-icu
|
||||||
|
|||||||
Reference in New Issue
Block a user