-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* fix readme * Fix tags * Add python 3.13
- Loading branch information
Showing
6 changed files
with
79 additions
and
27 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
FROM ghcr.io/snakepacker/python/all as builder | ||
|
||
# https://pillow.readthedocs.io/en/stable/installation.html#building-from-source | ||
RUN apt-install \ | ||
libfreetype6-dev \ | ||
libfribidi-dev \ | ||
libgif-dev \ | ||
libharfbuzz-dev \ | ||
libimagequant-dev \ | ||
libjpeg-dev \ | ||
libjpeg8-dev \ | ||
liblcms2-dev \ | ||
libopenjp2-7-dev \ | ||
libpng-dev \ | ||
libraqm-dev \ | ||
libtiff-dev \ | ||
libtiff5-dev \ | ||
libwebp-dev \ | ||
libxcb1-dev \ | ||
zlib1g-dev | ||
|
||
RUN python3 -m venv /var/tmp/pillow-venv | ||
RUN /var/tmp/pillow-venv/bin/pip install --no-binary=:all: pillow | ||
RUN find-libdeps /var/tmp/pillow-venv > /usr/share/python3/pillow-runtime-libs.txt | ||
|
||
############################################################################ | ||
|
||
FROM ghcr.io/snakepacker/python/3.13 | ||
COPY --from=builder /usr/share/python3/pillow-runtime-libs.txt /usr/share/python3/pillow-runtime-libs.txt | ||
RUN xargs -ra /usr/share/python3/pillow-runtime-libs.txt apt-install |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
FROM ghcr.io/snakepacker/python/base | ||
|
||
# Install python | ||
RUN apt-install python3.13-minimal libpython3.13-stdlib python3.13-nogil |