mirror of
https://github.com/OpenBB-finance/OpenBB.git
synced 2026-10-28 13:01:38 +00:00
* Fixes * Update stocks_helper.py * update git-actions set-output to new format * Update stocks_helper.py * Update terminal_helper.py * removed LineAnnotateDrawer from qa_view * lint * few changes * updates * sdk auto gen modules done * Update stocks_helper.py * updates to changed imports, and remove first sdk_modules * Update generate_sdk.py * Update generate_sdk.py * pylint * revert stocks_helper * Update generate_sdk.py * Update sdk.py * Update generate_sdk.py * full auto generation, added sdk.py/controllers creation * missed enable forecasting * added running black in subprocess after sdk files generation completes * removed deleted sdk_arg_logger * comment out tests * property doc fix * clean up * Update generate_sdk.py * make trailmap classes useable for doc generation * Update generate_sdk.py * added lineon to trailmap class for linking to func in markdown * changed lineon to dict * added full_path to trailmap for linking in docs * updated portfolio * added func_def to trailmap attributes for markdown in docs, added missing type hints to covid functions * Update generate_sdk.py * Update generate_sdk.py * Update generate_sdk.py * Update generate_sdk.py * merge * update sdk * updates * Update generate_sdk.py * Update generate_sdk.py * dead imports * bump * updates * updates * updated missing * added alt realestate functions to trailmap, logic to clear folders before building * Update __init__.py * Update generate_sdk.py * clean __init__.py files before build * sync website content folder * Update generate_sdk.py * updates + logging * drop pandas inplace. add docstrings * Update trail_map.py * Update generate_sdk.py * Update trail_map.py * stocks/fa PR added * synced trailmap with develop branch * Update CONTRIBUTING.md * Update CONTRIBUTING.md * Update CONTRIBUTING.md * Update sdk_init.py * fix removed keys functions * updates * reqs txt files * forgot to save * up to date with main * made sure help(openbb.trailmap) is preserved * ruff * Update requirements-full.txt --------- Co-authored-by: Colin Delahunty <72827203+colin99d@users.noreply.github.com> Co-authored-by: James Maslek <jmaslek11@gmail.com> Co-authored-by: Chavithra <chavithra@gmail.com>
71 lines
1.5 KiB
Docker
Vendored
71 lines
1.5 KiB
Docker
Vendored
# SETUP PYTHON IMAGE
|
|
FROM --platform=linux/amd64 python:3.10-slim-bullseye as python
|
|
|
|
LABEL org.opencontainers.image.source https://github.com/OpenBB-finance/OpenBBTerminal
|
|
|
|
# SETUP DEBIAN IMAGE
|
|
FROM python as debian
|
|
|
|
RUN apt-get update
|
|
|
|
RUN apt-get -y install --no-install-recommends \
|
|
gcc \
|
|
g++ \
|
|
make
|
|
|
|
RUN apt-get -y install --no-install-recommends \
|
|
git
|
|
|
|
RUN apt-get -y install --no-install-recommends \
|
|
curl \
|
|
wget
|
|
|
|
RUN apt-get -y install --no-install-recommends \
|
|
libsm6 \
|
|
libxt6 \
|
|
libgl1-mesa-glx \
|
|
libpng16-16 \
|
|
python3-tk
|
|
|
|
RUN apt-get clean
|
|
|
|
RUN useradd --create-home --shell /bin/bash python
|
|
|
|
USER python
|
|
WORKDIR /home/python
|
|
|
|
# SETUP POETRY IMAGE
|
|
FROM debian as poetry
|
|
|
|
ENV PATH="/home/python/.local/bin:${PATH}"
|
|
|
|
RUN pip install --upgrade pip wheel
|
|
RUN pip install poetry==1.3.2
|
|
|
|
# SETUP OPENBB IMAGE
|
|
FROM poetry as repository
|
|
|
|
COPY --chown=python:python pyproject.toml poetry.lock terminal.py ./
|
|
|
|
RUN mkdir openbb_terminal
|
|
COPY --chown=python:python openbb_terminal openbb_terminal
|
|
|
|
RUN mkdir -p website/content/sdk/quickstart
|
|
COPY --chown=python:python ./website/content/sdk/quickstart/installation.md ./website/content/sdk/quickstart
|
|
|
|
RUN mkdir OpenBBUserData
|
|
RUN chown python:python OpenBBUserData
|
|
|
|
RUN mkdir .openbb_terminal
|
|
RUN chown python:python .openbb_terminal
|
|
|
|
# SETUP OPENBB IMAGE
|
|
FROM repository as dependencies
|
|
|
|
RUN poetry install --no-root --no-dev --extras optimization --extras forecast
|
|
|
|
# SETUP OPENBB IMAGE
|
|
FROM dependencies as openbb
|
|
|
|
CMD ["poetry", "run", "python", "terminal.py"]
|