Added docker support

static
Sheng 2019-04-18 19:39:14 +08:00
parent f400367eac
commit 46d1e5b091
3 changed files with 16 additions and 0 deletions

5
Dockerfile Normal file
View File

@ -0,0 +1,5 @@
FROM python:3.7-slim
ADD . /code
WORKDIR /code
RUN pip install -r requirements.txt
CMD ["python", "run.py"]

6
docker-compose.yml Normal file
View File

@ -0,0 +1,6 @@
version: '3'
services:
web:
build: .
ports:
- "8888:8888"

5
run.py Normal file
View File

@ -0,0 +1,5 @@
from webssh.main import main
if __name__ == '__main__':
main()