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

@ -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
@ -13,4 +13,4 @@ ENV HOST=0.0.0.0
# Run the app when the container launches
CMD ["npm", "start"]
# docker build -t node-api .
# docker build -t node-api .