Skip to content

Commit

Permalink
fix(#230): add Alpine's 'curl' and 'wget'
Browse files Browse the repository at this point in the history
this gets around name resolution issues present on rootless Docker:
alpinelinux/docker-alpine#155
  • Loading branch information
usrme committed Sep 3, 2024
1 parent 1ca8c17 commit aefc98a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit aefc98a

Please sign in to comment.