mirror of
https://github.com/danny-avila/LibreChat.git
synced 2025-09-22 06:00:56 +02:00
Use npm ci rather than install to be consistent with lock file
This commit is contained in:
parent
9358a4fdb5
commit
0a12b47760
3 changed files with 4 additions and 4 deletions
|
@ -182,7 +182,7 @@ Here are my recently completed and planned features:
|
||||||
- If using MongoDB Atlas, remove `&w=majority` from default connection string.
|
- If using MongoDB Atlas, remove `&w=majority` from default connection string.
|
||||||
|
|
||||||
### Local
|
### 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)
|
- **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
|
- **Run** `npm run build` in /client/ dir, `npm start` in /api/ dir
|
||||||
- **Visit** http://localhost:3080 (default port) & enjoy
|
- **Visit** http://localhost:3080 (default port) & enjoy
|
||||||
|
|
|
@ -3,7 +3,7 @@ WORKDIR /api
|
||||||
# copy package.json into the container at /api
|
# copy package.json into the container at /api
|
||||||
COPY package*.json /api/
|
COPY package*.json /api/
|
||||||
# install dependencies
|
# install dependencies
|
||||||
RUN npm install
|
RUN npm ci
|
||||||
# Copy the current directory contents into the container at /api
|
# Copy the current directory contents into the container at /api
|
||||||
COPY . /api/
|
COPY . /api/
|
||||||
# Make port 3080 available to the world outside this container
|
# 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
|
# Run the app when the container launches
|
||||||
CMD ["npm", "start"]
|
CMD ["npm", "start"]
|
||||||
|
|
||||||
# docker build -t node-api .
|
# docker build -t node-api .
|
||||||
|
|
|
@ -4,7 +4,7 @@ WORKDIR /client
|
||||||
# copy package.json into the container at /client
|
# copy package.json into the container at /client
|
||||||
COPY package*.json /client/
|
COPY package*.json /client/
|
||||||
# install dependencies
|
# install dependencies
|
||||||
RUN npm install
|
RUN npm ci
|
||||||
# Copy the current directory contents into the container at /client
|
# Copy the current directory contents into the container at /client
|
||||||
COPY . /client/
|
COPY . /client/
|
||||||
# Build webpack artifacts
|
# Build webpack artifacts
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue