Skip to content

Commit 61a9b0f

Browse files
committed
Replace wget with curl
(to avoid need to install wget)
1 parent 049625a commit 61a9b0f

File tree

3 files changed

+3
-6
lines changed

3 files changed

+3
-6
lines changed

jdk11/Dockerfile

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@ RUN set -o errexit -o nounset \
2222
&& apt-get update \
2323
&& apt-get install --yes --no-install-recommends \
2424
unzip \
25-
wget \
2625
\
2726
bzr \
2827
git \
@@ -43,7 +42,7 @@ ENV GRADLE_VERSION 7.2
4342
ARG GRADLE_DOWNLOAD_SHA256=f581709a9c35e9cb92e16f585d2c4bc99b2b1a5f85d2badbd3dc6bff59e1e6dd
4443
RUN set -o errexit -o nounset \
4544
&& echo "Downloading Gradle" \
46-
&& wget --no-verbose --output-document=gradle.zip "https://services.gradle.org/distributions/gradle-${GRADLE_VERSION}-bin.zip" \
45+
&& curl --fail --show-error --silent --output gradle.zip "https://services.gradle.org/distributions/gradle-${GRADLE_VERSION}-bin.zip" \
4746
\
4847
&& echo "Checking download hash" \
4948
&& echo "${GRADLE_DOWNLOAD_SHA256} *gradle.zip" | sha256sum --check - \

jdk17/Dockerfile

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@ RUN set -o errexit -o nounset \
2222
&& apt-get update \
2323
&& apt-get install --yes --no-install-recommends \
2424
unzip \
25-
wget \
2625
\
2726
bzr \
2827
git \
@@ -43,7 +42,7 @@ ENV GRADLE_VERSION 7.2
4342
ARG GRADLE_DOWNLOAD_SHA256=f581709a9c35e9cb92e16f585d2c4bc99b2b1a5f85d2badbd3dc6bff59e1e6dd
4443
RUN set -o errexit -o nounset \
4544
&& echo "Downloading Gradle" \
46-
&& wget --no-verbose --output-document=gradle.zip "https://services.gradle.org/distributions/gradle-${GRADLE_VERSION}-bin.zip" \
45+
&& curl --fail --show-error --silent --output gradle.zip "https://services.gradle.org/distributions/gradle-${GRADLE_VERSION}-bin.zip" \
4746
\
4847
&& echo "Checking download hash" \
4948
&& echo "${GRADLE_DOWNLOAD_SHA256} *gradle.zip" | sha256sum --check - \

jdk8/Dockerfile

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@ RUN set -o errexit -o nounset \
2222
&& apt-get update \
2323
&& apt-get install --yes --no-install-recommends \
2424
unzip \
25-
wget \
2625
\
2726
bzr \
2827
git \
@@ -43,7 +42,7 @@ ENV GRADLE_VERSION 7.2
4342
ARG GRADLE_DOWNLOAD_SHA256=f581709a9c35e9cb92e16f585d2c4bc99b2b1a5f85d2badbd3dc6bff59e1e6dd
4443
RUN set -o errexit -o nounset \
4544
&& echo "Downloading Gradle" \
46-
&& wget --no-verbose --output-document=gradle.zip "https://services.gradle.org/distributions/gradle-${GRADLE_VERSION}-bin.zip" \
45+
&& curl --fail --show-error --silent --output gradle.zip "https://services.gradle.org/distributions/gradle-${GRADLE_VERSION}-bin.zip" \
4746
\
4847
&& echo "Checking download hash" \
4948
&& echo "${GRADLE_DOWNLOAD_SHA256} *gradle.zip" | sha256sum --check - \

0 commit comments

Comments
 (0)