nsarrazin HF Staff commited on
Commit
b9d70a7
·
1 Parent(s): a4cf96c

feat(docs): add instruction for running docker images locally

Browse files
Files changed (1) hide show
  1. README.md +11 -1
README.md CHANGED
@@ -1081,7 +1081,7 @@ npm run populate users settings assistants conversations
1081
 
1082
  to populate the database with fake data, including fake conversations and assistants for your user.
1083
 
1084
- ### Building the docker images locally
1085
 
1086
  You can build the docker images locally using the following commands:
1087
 
@@ -1090,3 +1090,13 @@ docker build -t chat-ui-db:latest --build-arg INCLUDE_DB=true .
1090
  docker build -t chat-ui:latest --build-arg INCLUDE_DB=false .
1091
  docker build -t huggingchat:latest --build-arg INCLUDE_DB=false --build-arg APP_BASE=/chat --build-arg PUBLIC_APP_COLOR=yellow .
1092
  ```
 
 
 
 
 
 
 
 
 
 
 
1081
 
1082
  to populate the database with fake data, including fake conversations and assistants for your user.
1083
 
1084
+ ## Building the docker images locally
1085
 
1086
  You can build the docker images locally using the following commands:
1087
 
 
1090
  docker build -t chat-ui:latest --build-arg INCLUDE_DB=false .
1091
  docker build -t huggingchat:latest --build-arg INCLUDE_DB=false --build-arg APP_BASE=/chat --build-arg PUBLIC_APP_COLOR=yellow .
1092
  ```
1093
+
1094
+ If you want to run the images with your local .env.local you have two options
1095
+
1096
+ ```bash
1097
+ DOTENV_LOCAL=$(<.env.local) docker run --rm --network=host -e DOTENV_LOCAL -p 3000:3000 chat-ui
1098
+ ```
1099
+
1100
+ ```bash
1101
+ docker run --rm --network=host --mount type=bind,source="$(pwd)/.env.local",target=/app/.env.local -p 3000:3000 chat-ui
1102
+ ```