-
Notifications
You must be signed in to change notification settings - Fork 17
Expand file tree
/
Copy pathDockerfile
More file actions
22 lines (15 loc) · 810 Bytes
/
Dockerfile
File metadata and controls
22 lines (15 loc) · 810 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#################################################################
FROM ghcr.io/snakepacker/python/all as uv-builder
RUN python3.13 -m venv /usr/share/python3/app
RUN /usr/share/python3/app/bin/pip install -U 'uv'
# Will be find required system libraries and their packages
RUN find-libdeps /usr/share/python3/app > /usr/share/python3/app/pkgdeps.txt
########################################################################
FROM ghcr.io/snakepacker/python/3.13
COPY --from=uv-builder /usr/share/python3/app /usr/share/python3/app
RUN ln -snf /usr/share/python3/app/bin/uv /usr/bin/ && mkdir -p /app
# Install the required library packages
RUN xargs -ra /usr/share/python3/app/pkgdeps.txt apt-install
WORKDIR /app
ENTRYPOINT ["uv"]
########################################################################