From 4bca3d261698721aaab7fccf86684a73ee1061af Mon Sep 17 00:00:00 2001 From: Charles Ulrich Date: Mon, 1 Apr 2024 11:02:07 -0400 Subject: [PATCH] Use `npm ci` instead of `npm install` --- Dockerfile | 2 +- README.md | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index e9f19db..ca1d8fa 100644 --- a/Dockerfile +++ b/Dockerfile @@ -11,7 +11,7 @@ FROM $NODE_IMAGE AS staging COPY ./ /staging/ WORKDIR /staging/silicon/static -RUN npm install +RUN npm ci # Build: diff --git a/README.md b/README.md index 6d1ef49..18ce99a 100644 --- a/README.md +++ b/README.md @@ -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