Browse Source

Added docker support

static
Sheng 6 years ago
parent
commit
46d1e5b091
  1. 5
      Dockerfile
  2. 6
      docker-compose.yml
  3. 5
      run.py

5
Dockerfile

@ -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

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

5
run.py

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