From 801e1ac740bc8565f526fcfd0ce5671b6c7a72c7 Mon Sep 17 00:00:00 2001 From: Chiara Date: Mon, 18 Jan 2021 19:23:34 +0100 Subject: [PATCH] :whale: : dockerfile --- Dockerfile | 10 ++++++++++ Procfile | 2 +- 2 files changed, 11 insertions(+), 1 deletion(-) create mode 100644 Dockerfile diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..74a9171 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,10 @@ +FROM python:3.7.9 + +WORKDIR /app +COPY . . + +RUN yarn install +RUN yarn build + + +CMD ["yarn","serve"] diff --git a/Procfile b/Procfile index 60df632..48742c7 100644 --- a/Procfile +++ b/Procfile @@ -1 +1 @@ -web: gunicorn autoapp:app -b 0.0.0.0:$PORT -w 3 +web: flask db upgrade; gunicorn autoapp:app -b 0.0.0.0:$PORT -w 3