Skip to content

Commit 54b2562

Browse files
authored
Install wget to work with retry flags (#262)
2 parents 3fe14c8 + 0dad0d3 commit 54b2562

File tree

2 files changed

+11
-1
lines changed

2 files changed

+11
-1
lines changed

alpine/Dockerfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ RUN apk --no-cache add \
2121
py3-pip \
2222
py3-virtualenv \
2323
sudo \
24+
wget \
2425
# Pillow dependencies
2526
freetype-dev \
2627
fribidi-dev \

amazon-2-amd64/Dockerfile

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ RUN yum install -y \
1010
gcc-c++ \
1111
ghostscript \
1212
git \
13+
gnutls-devel \
1314
harfbuzz-devel \
1415
lcms2-devel \
1516
libjpeg-devel \
@@ -36,6 +37,14 @@ ENV PATH="/root/.cargo/bin:${PATH}"
3637

3738
RUN useradd --uid 1001 pillow
3839

40+
RUN wget --no-verbose https://ftp.gnu.org/gnu/wget/wget-1.25.0.tar.gz \
41+
&& tar xzf wget-1.25.0.tar.gz \
42+
&& cd wget-1.25.0 \
43+
&& ./configure \
44+
&& make install \
45+
&& cd .. \
46+
&& rm -r wget-1.25.0 wget-1.25.0.tar.gz
47+
3948
COPY depends /depends
4049
RUN cd /depends \
4150
&& ./install_imagequant.sh
@@ -66,7 +75,7 @@ RUN wget --no-verbose https://github.com/ninja-build/ninja/releases/download/v1.
6675
&& unzip ninja-linux.zip \
6776
&& mv ninja /usr/bin
6877
RUN python3.10 -m pip install --no-cache-dir meson
69-
RUN ln -s /usr/local/bin/python3.10 /usr/bin/python3
78+
RUN ln -sf /usr/local/bin/python3.10 /usr/bin/python3
7079
RUN cd /depends \
7180
&& ./install_openjpeg.sh \
7281
&& ./download-and-extract.sh freetype-2.14.1 https://raw.githubusercontent.com/python-pillow/pillow-depends/main/freetype-2.14.1.tar.gz \

0 commit comments

Comments
 (0)