start of Docker and docker-compose support

This commit is contained in:
Justin
2021-02-24 23:21:02 -06:00
parent 21e7e4ad4b
commit 7afa86dc2d
3 changed files with 45 additions and 0 deletions

7
.dockerignore Normal file
View File

@@ -0,0 +1,7 @@
.git
.dockerignore
.env*
.gitignore
docker-compose.yaml
Dockerfile*

29
Dockerfile Normal file
View 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
View File

@@ -0,0 +1,9 @@
version: '3.8'
services:
gamestonkterminal:
build:
context: .
image: gamestonkterminal:dev
dns:
- 1.1.1.1
- 8.8.8.8