actions/eslint/Dockerfile
2019-01-05 15:52:19 +01:00

21 lines
703 B
Docker

FROM node:8.15.0-alpine@sha256:f30a55706c7336a648493b926128f56176e4500cfdc968764bfdb711716e0109
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.11.1 \
PATH=/usr/lib/node_modules/.bin:$PATH
RUN npm install -g eslint@${ESLINT_VERSION} && \
rm -rf /usr/share/man /tmp/* \
/root/.npm /root/.node-gyp \
/usr/lib/node_modules/npm/man \
/usr/lib/node_modules/npm/doc \
/usr/lib/node_modules/npm/html
COPY entrypoint.sh /entrypoint.sh
ENTRYPOINT ["/entrypoint.sh"]