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

Added docker to deploy teamserver #136

Open
wants to merge 10 commits into
base: master
Choose a base branch
from
13 changes: 13 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
FROM python:3.7-alpine3.10
WORKDIR /SILENTTRINITY
RUN apk upgrade --update-cache --available
RUN apk add build-base
RUN apk add bzip2-dev zlib-dev sqlite-dev readline-dev libbz2 \
ncurses-dev wget libffi-dev xz-dev openssl-dev tk-dev llvm ipython
RUN pip install shiv
RUN pip install ipython
COPY requirements.txt .
RUN pip install -r requirements.txt
COPY . ./
EXPOSE 80 443 5000 8080
ENTRYPOINT ["python3.7", "st.py", "teamserver", "${HOST_IP}", "${PASSWORD}"]
11 changes: 11 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
version: "3"
services:
server:
build: ./
network_mode: host
ports:
- 80:80
- 443:443
- 5000:5000
- 8080:8080
entrypoint: ["python3.7", "st.py", "teamserver", "${HOST_IP}", "${PASSWORD}"]
3 changes: 2 additions & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ blinker==1.4
certifi==2019.9.11
cffi==1.13.1
chardet==3.0.4
click==7.0
click==6.7
cryptography==2.8
defusedxml==0.6.0
dnslib==0.9.10
Expand All @@ -21,6 +21,7 @@ hpack==3.0.0
hypercorn==0.6.0
hyperframe==5.2.0
idna==2.8
impacket==0.9.20
itsdangerous==1.1.0
jinja2==2.10.3
ldap3==2.5.1
Expand Down