Skip to content

Commit 075751b

Browse files
committed
Fix DL4001: Either use Wget or Curl but not both
1 parent 56abaf4 commit 075751b

File tree

3 files changed

+4
-6
lines changed

3 files changed

+4
-6
lines changed

.hadolint.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,5 +9,4 @@ ignored:
99
- DL3041 # Pin versions in dnf install
1010
- DL3047 # Avoid use of wget without progress bar
1111
- DL3059 # Multiple consecutive RUN instructions
12-
- DL4001 # Either use Wget or Curl but not both
1312
- SC2016 # Expressions don't expand in single quotes

amazon-2-amd64/Dockerfile

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@ RUN yum install -y \
2323
tk-devel \
2424
unzip \
2525
util-linux \
26-
wget \
2726
which \
2827
xorg-x11-server-Xvfb \
2928
xorg-x11-xauth \
@@ -44,7 +43,7 @@ RUN yum remove -y openssl-devel && \
4443
yum install -y openssl11-devel && \
4544
yum clean all
4645

47-
RUN wget https://www.python.org/ftp/python/3.10.18/Python-3.10.18.tgz \
46+
RUN curl -fsSLO https://www.python.org/ftp/python/3.10.18/Python-3.10.18.tgz \
4847
&& tar xzf Python-3.10.18.tgz \
4948
&& cd Python-3.10.18 \
5049
&& ./configure \
@@ -62,7 +61,7 @@ RUN bash -c "python3.10 -m pip install virtualenv \
6261
&& /vpy3/bin/pip install numpy --only-binary=:all: || true \
6362
&& chown -R pillow:pillow /vpy3"
6463

65-
RUN wget https://github.com/ninja-build/ninja/releases/download/v1.13.2/ninja-linux.zip \
64+
RUN curl -fsSLO https://github.com/ninja-build/ninja/releases/download/v1.13.2/ninja-linux.zip \
6665
&& unzip ninja-linux.zip \
6766
&& mv ninja /usr/bin
6867
RUN python3.10 -m pip install --no-cache-dir meson

amazon-2023-amd64/Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ RUN yum install -y \
2626
tar \
2727
unzip \
2828
util-linux \
29-
wget \
29+
curl \
3030
which \
3131
xorg-x11-server-Xvfb \
3232
xorg-x11-xauth \
@@ -50,7 +50,7 @@ RUN bash -c "/usr/bin/python3.11 -m pip install virtualenv \
5050
&& chown -R pillow:pillow /vpy3"
5151

5252
COPY depends /depends
53-
RUN wget https://github.com/ninja-build/ninja/releases/download/v1.13.2/ninja-linux.zip \
53+
RUN curl -fsSLO https://github.com/ninja-build/ninja/releases/download/v1.13.2/ninja-linux.zip \
5454
&& unzip ninja-linux.zip \
5555
&& mv ninja /usr/bin
5656
RUN /usr/bin/python3.11 -m pip install meson

0 commit comments

Comments
 (0)