Remove npm cache in Docker to save >40 MB on image size
This commit is contained in:
+1
-1
@@ -16,7 +16,7 @@ WORKDIR ${APP_HOME}
|
||||
COPY package*.json ./
|
||||
RUN \
|
||||
echo "*** Install npm packages ***" && \
|
||||
npm install
|
||||
npm install && npm cache clean --force
|
||||
|
||||
# Bundle app source
|
||||
COPY . ./
|
||||
|
||||
Reference in New Issue
Block a user