Rework Docker setup, provide for remote DB, add example JSON

This commit is contained in:
Laurent Bossavit 2016-05-04 19:22:56 +02:00
parent 1f8741a14b
commit 6ef16787ab
8 changed files with 96 additions and 22 deletions

10
Dockerfile-backend Normal file
View file

@ -0,0 +1,10 @@
FROM ubuntu:15.10
RUN apt-get update
RUN apt-get install -y postgresql-server-dev-all
RUN apt-get install -y python3-dev
RUN apt-get install -y python3-pip
RUN pip3 install uwsgi
ADD /requirements.txt /app/
WORKDIR /app
RUN pip3 install -r requirements.txt
CMD uwsgi --http :8080 --wsgi-file backend.py --callable app