diff --git a/Dockerfile b/Dockerfile index 868b47a..ac446d3 100644 --- a/Dockerfile +++ b/Dockerfile @@ -9,5 +9,7 @@ RUN pip install -r requirements/dev.txt EXPOSE 8000 -CMD["flask", "db", "upgrade"] -CMD["python", "autoapp.py"] \ No newline at end of file +RUN flask db upgrade + +ENTRYPOINT["python"] +CMD["autoapp.py"] \ No newline at end of file