Merge pull request #6 from koenrh/koenrh/update-eslint

Update ESLint to latest version, and add add integrity check
This commit is contained in:
Koen Rouwhorst 2019-02-27 12:12:24 +01:00 committed by GitHub
commit b2940bc066
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -7,15 +7,21 @@ LABEL "com.github.actions.name"="GitHub Action for ESLint"
LABEL "com.github.actions.icon"="code"
LABEL "com.github.actions.color"="blue"
ENV ESLINT_VERSION=5.11.1 \
ENV ESLINT_VERSION=5.12.1 \
ESLINT_CHECKSUM="642ba59e25de166cf730d6eeb0af9b6f37ab21a04f5726baae6b1588da4afa60" \
PATH=/usr/lib/node_modules/.bin:$PATH
RUN npm install -g eslint@${ESLINT_VERSION} && \
rm -rf /usr/share/man /tmp/* \
RUN set -x && \
wget -O "eslint-$ESLINT_VERSION.tgz" "https://registry.npmjs.org/eslint/-/eslint-$ESLINT_VERSION.tgz" && \
echo "${ESLINT_CHECKSUM} *eslint-$ESLINT_VERSION.tgz" | sha256sum -c - && \
npm install -g "eslint-$ESLINT_VERSION.tgz" && \
rm -rf "eslint-$ESLINT_VERSION.tgz" \
/usr/share/man \
/root/.npm /root/.node-gyp \
/usr/lib/node_modules/npm/man \
/usr/lib/node_modules/npm/doc \
/usr/lib/node_modules/npm/html
/usr/lib/node_modules/npm/html \
/tmp/*
COPY entrypoint.sh /entrypoint.sh
ENTRYPOINT ["/entrypoint.sh"]