Skip to content

Commit a443555

Browse files
committed
feat(docs): add instruction for running docker images locally
1 parent 177a8c3 commit a443555

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

README.md

+11-1
Original file line numberDiff line numberDiff line change
@@ -1081,7 +1081,7 @@ npm run populate users settings assistants conversations
10811081

10821082
to populate the database with fake data, including fake conversations and assistants for your user.
10831083

1084-
### Building the docker images locally
1084+
## Building the docker images locally
10851085

10861086
You can build the docker images locally using the following commands:
10871087

@@ -1090,3 +1090,13 @@ docker build -t chat-ui-db:latest --build-arg INCLUDE_DB=true .
10901090
docker build -t chat-ui:latest --build-arg INCLUDE_DB=false .
10911091
docker build -t huggingchat:latest --build-arg INCLUDE_DB=false --build-arg APP_BASE=/chat --build-arg PUBLIC_APP_COLOR=yellow .
10921092
```
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+
```

0 commit comments

Comments
 (0)