From aefc98ad4d76d36e761b6c47a405228beff2fbf7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=9Cllar=20Seerme?= Date: Tue, 3 Sep 2024 11:13:53 +0300 Subject: [PATCH] fix(#230): add Alpine's 'curl' and 'wget' this gets around name resolution issues present on rootless Docker: https://github.com/alpinelinux/docker-alpine/issues/155 --- Dockerfile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index f1028f3..ba35946 100644 --- a/Dockerfile +++ b/Dockerfile @@ -6,12 +6,12 @@ ENV CHECKSTYLE_VERSION 10.18.1 SHELL ["/bin/ash", "-eo", "pipefail", "-c"] # hadolint ignore=DL3018 -RUN apk --no-cache add git +RUN apk --no-cache add curl git wget # pre-install reviewdog and checkstyle -RUN wget -O - -q https://raw.githubusercontent.com/reviewdog/reviewdog/master/install.sh | sh -s -- -b /usr/local/bin/ ${REVIEWDOG_VERSION} && \ +RUN wget -4 -O - -q https://raw.githubusercontent.com/reviewdog/reviewdog/master/install.sh | sh -s -- -b /usr/local/bin/ ${REVIEWDOG_VERSION} && \ mkdir -p /opt/lib && \ - wget -q -O /opt/lib/checkstyle.jar https://github.com/checkstyle/checkstyle/releases/download/checkstyle-${CHECKSTYLE_VERSION}/checkstyle-${CHECKSTYLE_VERSION}-all.jar + wget -4 -q -O /opt/lib/checkstyle.jar https://github.com/checkstyle/checkstyle/releases/download/checkstyle-${CHECKSTYLE_VERSION}/checkstyle-${CHECKSTYLE_VERSION}-all.jar COPY entrypoint.sh /entrypoint.sh