Use npm ci rather than install to be consistent with lock file

This commit is contained in:
Hyunggyu Jang 2023-03-21 12:23:25 +09:00
parent 9358a4fdb5
commit 0a12b47760
3 changed files with 4 additions and 4 deletions

View file

@ -182,7 +182,7 @@ Here are my recently completed and planned features:
- If using MongoDB Atlas, remove `&w=majority` from default connection string.
### Local
- **Run npm** install in both the api and client directories
- **Run npm** ci in both the api and client directories
- **Provide** all credentials, (API keys, access tokens, and Mongo Connection String) in api/.env [(see .env example)](api/.env.example)
- **Run** `npm run build` in /client/ dir, `npm start` in /api/ dir
- **Visit** http://localhost:3080 (default port) & enjoy

View file

@ -3,7 +3,7 @@ WORKDIR /api
# copy package.json into the container at /api
COPY package*.json /api/
# install dependencies
RUN npm install
RUN npm ci
# Copy the current directory contents into the container at /api
COPY . /api/
# Make port 3080 available to the world outside this container

View file

@ -4,7 +4,7 @@ WORKDIR /client
# copy package.json into the container at /client
COPY package*.json /client/
# install dependencies
RUN npm install
RUN npm ci
# Copy the current directory contents into the container at /client
COPY . /client/
# Build webpack artifacts