mirror of
https://github.com/koenrh/actions.git
synced 2025-01-20 14:17:41 +08:00
27 lines
1 KiB
Docker
27 lines
1 KiB
Docker
FROM node:11.6-alpine@sha256:d2180576a96698b0c7f0b00474c48f67a494333d9ecb57c675700395aeeb2c35
|
|
|
|
LABEL name="ESLint"
|
|
LABEL maintainer="Koen Rouwhorst <info@koenrouwhorst.nl>"
|
|
|
|
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.12.1 \
|
|
ESLINT_CHECKSUM="642ba59e25de166cf730d6eeb0af9b6f37ab21a04f5726baae6b1588da4afa60" \
|
|
PATH=/usr/lib/node_modules/.bin:$PATH
|
|
|
|
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 \
|
|
/tmp/*
|
|
|
|
COPY entrypoint.sh /entrypoint.sh
|
|
ENTRYPOINT ["/entrypoint.sh"]
|