Skip to content

Commit 7ed93a3

Browse files
committed
pip install uv
1 parent ceb1e54 commit 7ed93a3

File tree

2 files changed

+20
-4
lines changed

2 files changed

+20
-4
lines changed

ruff/Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
#################################################################
22
FROM ghcr.io/snakepacker/python/all as ruff-builder
33

4-
RUN python3.11 -m venv /usr/share/python3/app
4+
RUN python3.13 -m venv /usr/share/python3/app
55
RUN /usr/share/python3/app/bin/pip install -U 'ruff'
66

77
# Will be find required system libraries and their packages
88
RUN find-libdeps /usr/share/python3/app > /usr/share/python3/app/pkgdeps.txt
99

1010
########################################################################
11-
FROM ghcr.io/snakepacker/python/3.11
11+
FROM ghcr.io/snakepacker/python/3.13
1212

1313
COPY --from=ruff-builder /usr/share/python3/app /usr/share/python3/app
1414
RUN ln -snf /usr/share/python3/app/bin/ruff /usr/bin/ && mkdir -p /app

uv/Dockerfile

Lines changed: 18 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,22 @@
1-
FROM ghcr.io/snakepacker/python/3.12
2-
COPY --from=ghcr.io/astral-sh/uv:latest /uv /uvx /bin/
1+
#################################################################
2+
FROM ghcr.io/snakepacker/python/all as uv-builder
3+
4+
RUN python3.13 -m venv /usr/share/python3/app
5+
RUN /usr/share/python3/app/bin/pip install -U 'uv'
6+
7+
# Will be find required system libraries and their packages
8+
RUN find-libdeps /usr/share/python3/app > /usr/share/python3/app/pkgdeps.txt
9+
10+
########################################################################
11+
FROM ghcr.io/snakepacker/python/3.13
12+
13+
COPY --from=uv-builder /usr/share/python3/app /usr/share/python3/app
14+
RUN ln -snf /usr/share/python3/app/bin/uv /usr/bin/ && mkdir -p /app
15+
16+
# Install the required library packages
17+
RUN xargs -ra /usr/share/python3/app/pkgdeps.txt apt-install
318

419
WORKDIR /app
520

621
ENTRYPOINT ["uv"]
22+
########################################################################

0 commit comments

Comments
 (0)