From 9a394e5025f1d5e1f143ba2eba42322575eceb61 Mon Sep 17 00:00:00 2001 From: Sn0wed1 <45251800+Sn0wed1@users.noreply.github.com> Date: Thu, 3 Sep 2020 15:27:08 -0500 Subject: [PATCH] Adds a Dockerfile --- Dockerfile | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 Dockerfile diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..e4d1f9f --- /dev/null +++ b/Dockerfile @@ -0,0 +1,15 @@ +FROM python:3 + +WORKDIR /usr/src/app + +COPY requirements.txt ./ +RUN pip install --no-cache-dir -r requirements.txt + +COPY . . + +RUN flask db init +RUN flask db migrate +RUN flask db upgrade + +CMD flask run --host 0.0.0.0 +EXPOSE 5000