From 46d1e5b0910f3c37581568e93c9adb4245c29926 Mon Sep 17 00:00:00 2001 From: Sheng Date: Thu, 18 Apr 2019 19:39:14 +0800 Subject: [PATCH] Added docker support --- Dockerfile | 5 +++++ docker-compose.yml | 6 ++++++ run.py | 5 +++++ 3 files changed, 16 insertions(+) create mode 100644 Dockerfile create mode 100644 docker-compose.yml create mode 100644 run.py diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..7f1f69b --- /dev/null +++ b/Dockerfile @@ -0,0 +1,5 @@ +FROM python:3.7-slim +ADD . /code +WORKDIR /code +RUN pip install -r requirements.txt +CMD ["python", "run.py"] diff --git a/docker-compose.yml b/docker-compose.yml new file mode 100644 index 0000000..315cee6 --- /dev/null +++ b/docker-compose.yml @@ -0,0 +1,6 @@ +version: '3' +services: + web: + build: . + ports: + - "8888:8888" diff --git a/run.py b/run.py new file mode 100644 index 0000000..0585233 --- /dev/null +++ b/run.py @@ -0,0 +1,5 @@ +from webssh.main import main + + +if __name__ == '__main__': + main()