docs(install-for-production): fix npm cache cli example

See https://docs.npmjs.com/cli/v6/commands/npm-cache, there is no command called `npm clean`
This commit is contained in:
Frazer Smith
2021-02-01 10:49:20 +00:00
committed by GitHub
parent 00a1317194
commit 73bbbf4b30

View File

@ -18,7 +18,7 @@ Dev dependencies greatly increase the container attack surface (i.e. potential s
FROM node:12-slim AS build
WORKDIR /usr/src/app
COPY package.json package-lock.json ./
RUN npm ci --production && npm clean cache --force
RUN npm ci --production && npm cache clean --force
# The rest comes here
```