Skip to content

Commit

Permalink
Use npm ci instead of npm install
Browse files Browse the repository at this point in the history
  • Loading branch information
cu committed Apr 1, 2024
1 parent 725e19a commit 4bca3d2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ FROM $NODE_IMAGE AS staging
COPY ./ /staging/
WORKDIR /staging/silicon/static

RUN npm install
RUN npm ci


# Build:
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -222,14 +222,14 @@ of the following commands:

```sh
# If you have `npm` installed locally
(cd silicon/static && npm install)
(cd silicon/static && npm ci)
```

Or:

```sh
# if you have `docker` installed
docker run -ti --rm -v $PWD/silicon/static:/app -w /app node:alpine npm install
docker run -ti --rm -v $PWD/silicon/static:/app -w /app node:alpine npm ci
```

Currently only a handful of languages are enabled for syntax highlighting, if
Expand Down

0 comments on commit 4bca3d2

Please sign in to comment.