update docker readme

This commit is contained in:
Diogo Sousa
2023-10-06 18:19:20 +01:00
parent bbe40da843
commit 65ecfd75aa

View File

@@ -454,13 +454,13 @@ We provide a `.dockerfile`` in OpenBB [repo](https://github.com/OpenBB-finance/O
To build the image, you can run the following command from the repo root:
```bash
docker build -f build/docker/api.dockerfile -t openbb-sdk:latest .
docker build -f build/docker/api.dockerfile -t openbb-platform:latest .
```
To run this newly-built image:
```bash
docker run --rm -p 8000:8000 -v ~/.openbb_platform:/root/.openbb_platform openbb-sdk:latest
docker run --rm -p 8000:8000 -v ~/.openbb_platform:/root/.openbb_platform openbb-platform:latest
```
This will mount the local `~/.openbb_platform` directory into the Docker container so you can use the API keys from there and it will expose the API on port `8000`.