Added basic docker setup

main
Ben Busby 2020-04-08 14:05:28 -06:00
parent 08a8a3e064
commit d88b3904ff
2 changed files with 11 additions and 1 deletions

10
Dockerfile Normal file
View File

@ -0,0 +1,10 @@
FROM python:3
WORKDIR /usr/src/app
COPY . .
RUN pip install --no-cache-dir -r requirements.txt
EXPOSE 5000
CMD ["./run.sh"]

2
run.sh
View File

@ -11,4 +11,4 @@ pkill flask
# TODO: Set up the following for running over https # TODO: Set up the following for running over https
#--cert=./app/cert.pem --key=./app/key.pem #--cert=./app/cert.pem --key=./app/key.pem
$SCRIPT_DIR/venv/bin/flask run flask run --host="0.0.0.0"