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