From 7696ed39520fe32f8ba2f2154a264dd7c34c97b6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vojt=C4=9Bch=20K=C3=A1n=C4=9B?= Date: Wed, 1 Jan 2020 12:49:45 +0100 Subject: [PATCH] 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. --- linting/js/Dockerfile | 2 -- linting/sass/Dockerfile | 2 -- 2 files changed, 4 deletions(-) diff --git a/linting/js/Dockerfile b/linting/js/Dockerfile index 7ee0de1..8ed75bb 100644 --- a/linting/js/Dockerfile +++ b/linting/js/Dockerfile @@ -1,7 +1,5 @@ FROM node:12-alpine -RUN mkdir /src - # Hack to upgrade NPM: # - install local version # - replace old global verson with new one diff --git a/linting/sass/Dockerfile b/linting/sass/Dockerfile index 4703d9f..9ab69c1 100644 --- a/linting/sass/Dockerfile +++ b/linting/sass/Dockerfile @@ -1,7 +1,5 @@ FROM node:12-alpine -RUN mkdir /src - RUN npm install npm@5.3 && \ rm -rf /usr/local/lib/node_modules/npm && \ mv /node_modules/npm /usr/local/lib/node_modules