eslint/Dockerfile

22 lines
613 B
Text
Raw Normal View History

FROM node:10-alpine
2018-04-20 06:20:17 +00:00
ENV ESLINT_VERSION=5.16.0
2018-04-20 06:20:17 +00:00
RUN set -ex \
&& npm install -g \
babel-eslint@latest \
2018-04-20 06:20:17 +00:00
eslint@${ESLINT_VERSION} \
eslint-config-standard@latest \
2018-04-20 06:20:17 +00:00
eslint-plugin-import@latest \
eslint-plugin-node@latest \
eslint-plugin-promise@latest \
eslint-plugin-standard@latest \
eslint-plugin-vue@latest \
&& ( rm -rf /usr/share/man /tmp/* \
2018-04-20 06:20:17 +00:00
/root/.npm /root/.node-gyp \
/usr/lib/node_modules/npm/man \
/usr/lib/node_modules/npm/doc \
/usr/lib/node_modules/npm/html || true )
2018-04-20 06:20:17 +00:00
ENTRYPOINT ["/usr/local/bin/eslint"]