Files
OpenBB/openbb_terminal_web/Dockerfile
jmaslek b71abcfbf4 Updating some names (#1575)
* quick econ fix

* black

* keys and feature flags

* terminal name 👀

* some more replacements

* some more replacements

* edit pyproject

* gst -> openbb

* add example portfolios back to git

* Update api from gst

* sorry.  skipping some tests

* another round of names

* another round of test edits

* Missed some .gst refs and update timezone

* water mark stuff

* Fixing Names in terminal.spec and name of GTFF_DEFAULTS to OBBFF_DEFAULTS

* fix more GST to OpenBB Terminal

* Logging : merge conflicts with main

* Revert wrong files

Co-authored-by: Andrew <andrew.kenreich@gmail.com>
Co-authored-by: DidierRLopes <dro.lopes@campus.fct.unl.pt>
Co-authored-by: Chavithra PARANA <chavithra@gmail.com>
2022-03-29 09:46:26 -04:00

28 lines
1.2 KiB
Docker
Vendored

# Use Debian 11 as the base image. It's stable, reliable, and simple. Not the smallest, but it will work fine.
FROM debian:bullseye-slim
# Install git, Python, wget, and pip (the Python library manager)
RUN apt-get update && apt-get install git wget python3 python3-pip -y
# Download and uncrompress tarball
RUN mkdir GamestonkTerminal && wget https://github.com/GamestonkTerminal/GamestonkTerminal/tarball/master.tar.gz -O - | tar -xz -C GamestonkTerminal --strip-components 1
WORKDIR /GamestonkTerminal
# Download its dependicies using pip
RUN pip install -r requirements-full.txt && pip cache purge
# Create a little script to start the GamestonkTerminal
RUN printf '#!/bin/sh\npython3 /GamestonkTerminal/terminal.py\n' > /bin/run && chmod +x /bin/run
# Put our custom index.html and .gotty into the root directory of the container
COPY index.html /index.html
# I've built this version of gotty myself
# It uses the sources from here https://github.com/sorenisanerd/gotty
# Except the one difference is that font is hard-coded in
COPY gotty /bin/gotty
RUN chmod +x /bin/gotty
# And launch the script when we run the container
ENTRYPOINT gotty --index '/index.html' --term xterm --title-format 'OpenBB Terminal Web' --permit-write run