add docker image

This commit is contained in:
tdurieux
2018-10-02 12:59:45 +02:00
parent a1e2e41e5a
commit 051d11500a
2 changed files with 12 additions and 1 deletions

11
Dockerfile Normal file
View File

@@ -0,0 +1,11 @@
FROM python:3.7.0
ADD server.py /
ADD static /
ADD templates /
ADD requirements.txt /
RUN pip install --requirement requirements.txt
ENTRYPOINT [ "python", "./server.py" ]

View File

@@ -434,7 +434,7 @@ class Anonymous_Github:
def initParser():
parser = argparse.ArgumentParser(description='Start Anonymous Github')
parser.add_argument('-token', required=True, help='GitHuh token')
parser.add_argument('-token', required=True, help='GitHub token')
parser.add_argument('-host', help='The hostname', default="127.0.0.1")
parser.add_argument('-port', help='The port of the application', default=5000)
parser.add_argument('-config_dir', help='The repository that will contains the configuration files',