mirror of
https://github.com/OpenBB-finance/OpenBB.git
synced 2026-10-27 20:42:26 +00:00
start of Docker and docker-compose support
This commit is contained in:
7
.dockerignore
Normal file
7
.dockerignore
Normal file
@@ -0,0 +1,7 @@
|
||||
.git
|
||||
|
||||
.dockerignore
|
||||
.env*
|
||||
.gitignore
|
||||
docker-compose.yaml
|
||||
Dockerfile*
|
||||
29
Dockerfile
Normal file
29
Dockerfile
Normal file
@@ -0,0 +1,29 @@
|
||||
FROM python:3.6.13-slim-buster
|
||||
|
||||
RUN apt-get update && apt-get -y install --no-install-recommends \
|
||||
ca-certificates \
|
||||
wget \
|
||||
curl \
|
||||
telnet \
|
||||
net-tools \
|
||||
iputils-ping \
|
||||
dnsutils \
|
||||
git \
|
||||
gnupg \
|
||||
unzip \
|
||||
bzip2 && \
|
||||
apt-get clean && \
|
||||
rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
|
||||
|
||||
RUN mkdir -p /home/gamestonkterminal
|
||||
WORKDIR /home/gamestonkterminal
|
||||
|
||||
COPY . .
|
||||
|
||||
RUN pip install -r requirements.txt
|
||||
RUN pip install git+https://github.com/DidierRLopes/TimeSeriesCrossValidation
|
||||
|
||||
RUN chown -R python /home/gamestonkterminal
|
||||
USER python
|
||||
|
||||
CMD ["python", "gameston_terminal.py"]
|
||||
9
docker-compose.yaml
Normal file
9
docker-compose.yaml
Normal file
@@ -0,0 +1,9 @@
|
||||
version: '3.8'
|
||||
services:
|
||||
gamestonkterminal:
|
||||
build:
|
||||
context: .
|
||||
image: gamestonkterminal:dev
|
||||
dns:
|
||||
- 1.1.1.1
|
||||
- 8.8.8.8
|
||||
Reference in New Issue
Block a user