Improve example

This commit is contained in:
38elements
2017-05-13 23:01:35 +09:00
parent 220396018b
commit e31de53e2f
14 changed files with 53 additions and 84 deletions

View File

@@ -0,0 +1,11 @@
FROM python:3.5
MAINTAINER Channel Cat <channelcat@gmail.com>
ADD . /code
RUN pip3 install git+https://github.com/channelcat/sanic
EXPOSE 8000
WORKDIR /code
CMD ["python", "simple_server.py"]

View File

@@ -0,0 +1,6 @@
version: '2'
services:
sanic:
build: .
ports:
- "8000:8000"