Skip to content

Commit 6d6b2b6

Browse files
committed
uv?
1 parent a65e02d commit 6d6b2b6

File tree

2 files changed

+8
-3
lines changed

2 files changed

+8
-3
lines changed

docker/Dockerfile

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ RUN apt update && \
3636
flex \
3737
bison
3838

39+
RUN pip3 install uv
3940

4041
FROM build-deps AS build-unbound
4142
ARG PYTHON_VERSION
@@ -59,15 +60,19 @@ COPY requirements.txt /src/
5960

6061
WORKDIR /src
6162

62-
RUN pip3 install --system -r requirements.txt
63+
ENV UV_LINK_MODE=copy
64+
RUN --mount=type=cache,target=/root/.cache/uv \
65+
uv pip install --system -r requirements.txt
6366

6467
# stage with app dependencies and lint/test depencencies
6568
FROM build-app-deps AS linttest-deps
6669
ARG PYTHON_VERSION
6770

6871
COPY requirements-dev.txt /src/
6972

70-
RUN pip3 install --system -r requirements-dev.txt
73+
ENV UV_LINK_MODE=copy
74+
RUN --mount=type=cache,target=/root/.cache/uv \
75+
uv pip install --system -r requirements-dev.txt
7176

7277
# build unbound target
7378
FROM --platform=linux/amd64 debian:bullseye-20241111-slim AS unbound

0 commit comments

Comments
 (0)