Use Flask for Python environment

Flask gives us easy routing support, and simple interface for getting
at request data.
This commit is contained in:
Soam Vasani
2016-11-19 20:04:46 -08:00
parent 8a9559be1f
commit 640e65f35f
4 changed files with 38 additions and 43 deletions
+12 -3
View File
@@ -1,3 +1,12 @@
FROM python:3-onbuild
CMD [ "python", "./server.py" ]
EXPOSE 8888
FROM ubuntu:16.04
RUN apt-get update -y
RUN apt-get install -y python3 python3-pip python3-dev build-essential
COPY . /app
WORKDIR /app
RUN pip3 install -r requirements.txt
ENTRYPOINT ["python3"]
CMD ["server.py"]