Skip to content

Commit

Permalink
[Feature] Create openbb-cli .dockerfile and update docs (#6485)
Browse files Browse the repository at this point in the history
* feat: create cli dockerfile and update docs

* remove port mapping

* Remove cli image and docs
  • Loading branch information
montezdesousa authored Jun 12, 2024
1 parent 174f289 commit 1a283b6
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@

COPY ./openbb_platform ./openbb_platform

# Install the SDK
# Install the Platform
RUN pip install /openbb/openbb_platform[all]
RUN pip install openbb-devtools

Expand All @@ -43,5 +43,5 @@

COPY --from=builder /usr/local /usr/local

# Specify the command to run
# Launch the API
CMD ["uvicorn", "openbb_core.api.rest_api:app", "--host", "0.0.0.0", "--port", "8000", "--reload"]
11 changes: 9 additions & 2 deletions website/content/platform/installation.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -168,12 +168,19 @@ pip uninstall openbb[all]
### Docker

<details>
OpenBB provides a `.dockerfile` on [GitHub](https://github.com/OpenBB-finance/OpenBBTerminal).

You can install and run the Platform from [GitHub Container Registry](https://github.com/OpenBB-finance/OpenBBTerminal/pkgs/container/openbb-platform) with:

```bash
docker run --rm -p 8000:8000 -v ~/.openbb_platform:/root/.openbb_platform ghcr.io/openbb-finance/openbb-platform:latest
```

Alternatively, we provide a `.dockerfile` on [GitHub](https://github.com/OpenBB-finance/OpenBBTerminal).

Run the following command from the repo root to build the image:

```bash
docker build -f build/docker/api.dockerfile -t openbb-platform:latest .
docker build -f build/docker/platform.dockerfile -t openbb-platform:latest .
```

To run it:
Expand Down

0 comments on commit 1a283b6

Please sign in to comment.