forked from python-pillow/docker-images
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
66 lines (58 loc) · 1.59 KB
/
Dockerfile
File metadata and controls
66 lines (58 loc) · 1.59 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
FROM amazonlinux:2023
RUN yum install -y \
cmake \
findutils \
freetype-devel \
fribidi-devel \
gcc \
gcc-c++ \
ghostscript \
git \
harfbuzz-devel \
lcms2-devel \
libjpeg-devel \
libtiff-devel \
make \
nasm \
openssl-devel \
patch \
python3.11-devel \
python3.11-pip \
python3.11-test \
python3.11-tkinter \
shadow-utils \
sudo \
tar \
unzip \
util-linux \
wget \
which \
xorg-x11-server-Xvfb \
xorg-x11-xauth \
zlib-devel \
&& yum clean all
RUN curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y
ENV PATH="/root/.cargo/bin:${PATH}"
RUN useradd --uid 1001 pillow
ARG PIP_DISABLE_PIP_VERSION_CHECK=1
ARG PIP_NO_CACHE_DIR=1
RUN bash -c "/usr/bin/python3.11 -m pip install virtualenv \
&& /usr/bin/python3.11 -mvirtualenv -p /usr/bin/python3.11 --system-site-packages /vpy3 \
&& /vpy3/bin/pip install --upgrade pip \
&& /vpy3/bin/pip install olefile pytest pytest-cov pytest-timeout \
&& /vpy3/bin/pip install numpy --only-binary=:all: || true \
&& chown -R pillow:pillow /vpy3"
ADD depends /depends
RUN wget https://github.com/ninja-build/ninja/releases/download/v1.13.2/ninja-linux.zip \
&& unzip ninja-linux.zip \
&& mv ninja /usr/bin
RUN /usr/bin/python3.11 -m pip install meson
RUN cd /depends \
&& ./install_imagequant.sh \
&& ./install_libavif.sh \
&& ./install_openjpeg.sh \
&& ./install_raqm.sh \
&& ./install_webp.sh
USER pillow
CMD ["depends/test.sh"]
#docker run -v $GITHUB_WORKSPACE:/Pillow pythonpillow/amazon-2023-amd64