Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Docker and docker-compose support #13

Closed
wants to merge 12 commits into from
7 changes: 7 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
.git

.dockerignore
.env*
.gitignore
docker-compose.yaml
Dockerfile*
29 changes: 29 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
FROM python:3.6.13-slim-buster

RUN apt-get update && apt-get -y install --no-install-recommends \
gcc \
g++ \
make \
wget \
curl \
telnet \
net-tools \
iputils-ping \
dnsutils \
git \
gnupg \
unzip \
bzip2 && \
apt-get -y autoremove && \
apt-get clean && \
rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*

RUN useradd --create-home --shell /bin/bash python
USER python
WORKDIR /home/python

COPY --chown=python:python . .

RUN INSTALL_ON_LINUX=1 pip install -r requirements.txt

CMD ["python", "gamestonk_terminal.py"]
8 changes: 8 additions & 0 deletions docker-compose.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
version: '3.8'
services:
gamestonkterminal:
build:
context: .
image: gamestonkterminal:dev
volumes:
- .:/home/python
3 changes: 1 addition & 2 deletions requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ requests-oauthlib==1.3.0
rsa==4.7.2
sacremoses==0.0.43
scikit-learn==0.24.1
scipy==1.6.1
scipy==1.4.1
segtok==1.5.10
sentencepiece==0.1.91
six==1.15.0
Expand Down Expand Up @@ -128,4 +128,3 @@ tensorflow==2.4.1
zipp==3.4.0
lunarcalendar
fbprophet
levenshtein