patek.cz/linting/sass/Dockerfile
Vojtěch Káně 7696ed3952 Simplify Dockerfiles
There is no need to run explicit mkdir, since the new directory is not
used during the build and workdir command creates it automatically.
2020-01-01 12:49:45 +01:00

16 lines
285 B
Docker

FROM node:12-alpine
RUN npm install npm@5.3 && \
rm -rf /usr/local/lib/node_modules/npm && \
mv /node_modules/npm /usr/local/lib/node_modules
RUN npm install -g sass-lint
# Cleanup
RUN rm -fr /root/.npm /node_modules
WORKDIR /src
ENTRYPOINT ["/usr/local/bin/sass-lint"]