From d88b3904ffe597a72b94ef865a8d3934e672d40a Mon Sep 17 00:00:00 2001 From: Ben Busby Date: Wed, 8 Apr 2020 14:05:28 -0600 Subject: [PATCH] Added basic docker setup --- Dockerfile | 10 ++++++++++ run.sh | 2 +- 2 files changed, 11 insertions(+), 1 deletion(-) create mode 100644 Dockerfile diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..269cad3 --- /dev/null +++ b/Dockerfile @@ -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"] diff --git a/run.sh b/run.sh index 25460ba..1fa5273 100755 --- a/run.sh +++ b/run.sh @@ -11,4 +11,4 @@ pkill flask # TODO: Set up the following for running over https #--cert=./app/cert.pem --key=./app/key.pem -$SCRIPT_DIR/venv/bin/flask run +flask run --host="0.0.0.0"