Rework Docker setup, provide for remote DB, add example JSON
This commit is contained in:
parent
1f8741a14b
commit
6ef16787ab
8 changed files with 96 additions and 22 deletions
10
Dockerfile-backend
Normal file
10
Dockerfile-backend
Normal 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
|
Loading…
Add table
Add a link
Reference in a new issue