Skip to content

Commit 530ef98

Browse files
committed
Fixed libimagequant install on Amazon Linux 2
1 parent 7a1012e commit 530ef98

File tree

1 file changed

+10
-4
lines changed

1 file changed

+10
-4
lines changed

amazon-2-amd64/Dockerfile

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,8 @@ RUN yum install -y \
1515
libjpeg-devel \
1616
libtiff-devel \
1717
make \
18-
openssl11-devel \
18+
meson \
19+
openssl-devel \
1920
pth-devel \
2021
shadow-utils \
2122
sqlite-devel \
@@ -36,6 +37,14 @@ ENV PATH="/root/.cargo/bin:${PATH}"
3637

3738
RUN useradd --uid 1001 pillow
3839

40+
ADD depends /depends
41+
RUN cd /depends \
42+
&& ./install_imagequant.sh
43+
44+
RUN yum remove -y openssl-devel && \
45+
yum install -y openssl11-devel && \
46+
yum clean all
47+
3948
RUN wget https://www.python.org/ftp/python/3.10.18/Python-3.10.18.tgz \
4049
&& tar xzf Python-3.10.18.tgz \
4150
&& cd Python-3.10.18 \
@@ -54,14 +63,11 @@ RUN bash -c "python3.10 -m pip install virtualenv \
5463
&& /vpy3/bin/pip install numpy --only-binary=:all: || true \
5564
&& chown -R pillow:pillow /vpy3"
5665

57-
ADD depends /depends
5866
RUN wget https://github.com/ninja-build/ninja/releases/download/v1.13.1/ninja-linux.zip \
5967
&& unzip ninja-linux.zip \
6068
&& mv ninja /usr/bin
61-
RUN python3.10 -m pip install meson
6269
RUN ln -s /usr/local/bin/python3.10 /usr/bin/python3
6370
RUN cd /depends \
64-
&& ./install_imagequant.sh \
6571
&& ./install_openjpeg.sh \
6672
&& ./install_raqm.sh \
6773
&& ./install_webp.sh

0 commit comments

Comments
 (0)