mirror of
https://github.com/goldbergyoni/nodebestpractices.git
synced 2025-10-27 19:17:13 +08:00
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:
@ -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
|
||||
```
|
||||
|
||||
Reference in New Issue
Block a user