commit 46d1e5b0910f3c37581568e93c9adb4245c29926
parent f400367eac2d1bf3160c853be2713ab94389f634
Author: Sheng <webmaster0115@gmail.com>
Date: Thu, 18 Apr 2019 19:39:14 +0800
Added docker support
Diffstat:
3 files changed, 16 insertions(+), 0 deletions(-)
diff --git a/Dockerfile 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
@@ -0,0 +1,6 @@
+version: '3'
+services:
+ web:
+ build: .
+ ports:
+ - "8888:8888"
diff --git a/run.py b/run.py
@@ -0,0 +1,5 @@
+from webssh.main import main
+
+
+if __name__ == '__main__':
+ main()