Files
OpenBB/openbb_platform/Dockerfile
Danglewood 32a2870c70 [V5] Fix a Number of V5 Bugs (#7707)
* fix a number of v5 bugs

* fix lint error

* more lint

* fixes for quantitative, technical, charting, famafrench for version bumps

---------

Co-authored-by: deeleeramone <>
2026-09-28 01:43:14 -07:00

44 lines
1.2 KiB
Docker
Vendored

# syntax=docker/dockerfile:1
#
# Build context must be the repository root (not openbb_platform/), since
# dev_install.py installs packages from both openbb_platform/ and cli/:
# docker build -f openbb_platform/Dockerfile -t openbb-platform .
#
# Only openbb-core and openbb-charting are published at their V5 versions on
# PyPI; every other package here (cli, platform-api, mcp-server, providers,
# routers) is still pre-V5 upstream, so everything is installed editable from
# this checkout via openbb_platform/dev_install.py rather than by name.
FROM python:3.11-slim AS builder
WORKDIR /app
RUN apt-get update \
&& apt-get install -y --no-install-recommends build-essential curl git \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/*
RUN pip install --no-cache-dir uv
COPY . .
RUN python openbb_platform/dev_install.py --routers
FROM python:3.11-slim
RUN useradd --create-home --shell /bin/bash openbb
COPY --from=builder /usr/local /usr/local
COPY --from=builder --chown=openbb:openbb /app /app
USER openbb
ENV HOME=/home/openbb
ENV PYTHONUNBUFFERED=1
ENV OPENBB_CONFIG=/app/openbb_platform/openbb.docker.toml
WORKDIR /app/openbb_platform
EXPOSE 6900 8001
CMD ["openbb-api"]