Skip to content

Commit

Permalink
Merge pull request #78 from tsuyoshicho/fix/dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
tsuyoshicho authored Feb 1, 2024
2 parents 47f2e94 + c3d4f5d commit 4c5755b
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,17 +6,19 @@ ENV REDPEN_VERSION=1.10.4
# reviewdog
ENV REVIEWDOG_VERSION=v0.17.0

RUN apk --update add git curl jq wget && \
rm -rf /var/lib/apt/lists/* && \
rm /var/cache/apk/*
# hadolint ignore=DL3018
RUN apk add --no-cache git jq wget && \
rm -rf /var/lib/apt/lists/*
# hadolint ignore=DL4006
RUN wget -O - -q https://raw.githubusercontent.com/reviewdog/reviewdog/master/install.sh| sh -s -- -b /usr/local/bin/ ${REVIEWDOG_VERSION}
RUN curl -sL https://api.github.com/repos/redpen-cc/redpen/releases/tags/redpen-${REDPEN_VERSION} -o - \
# hadolint ignore=DL4006
RUN wget -O - -q https://api.github.com/repos/redpen-cc/redpen/releases/tags/redpen-${REDPEN_VERSION} \
| jq -r .assets[].browser_download_url \
| grep -i "tar.gz" \
| head -n 1 \
| wget -qi - -O redpen-${REDPEN_VERSION}.tar.gz && \
tar xvfp redpen-${REDPEN_VERSION}.tar.gz -C / && \
rm *.tar.gz && \
rm redpen-${REDPEN_VERSION}.tar.gz && \
find . -maxdepth 1 -type d -name "redpen*" -print0 | xargs -0 -I{} mv {} redpen

ENV PATH="/redpen/bin:${PATH}"
Expand Down

0 comments on commit 4c5755b

Please sign in to comment.