diff --git a/README.md b/README.md index 10b6b4b1c..93315d744 100644 --- a/README.md +++ b/README.md @@ -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 diff --git a/api/Dockerfile b/api/Dockerfile index b861217be..d417bf1ec 100644 --- a/api/Dockerfile +++ b/api/Dockerfile @@ -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 . \ No newline at end of file +# docker build -t node-api . diff --git a/client/Dockerfile b/client/Dockerfile index 261ec0c71..59148137a 100644 --- a/client/Dockerfile +++ b/client/Dockerfile @@ -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