diff --git a/.dockerignore b/.dockerignore new file mode 100644 index 0000000..331d387 --- /dev/null +++ b/.dockerignore @@ -0,0 +1,2 @@ +.git +Dockerfile diff --git a/Dockerfile b/Dockerfile index e4d1f9f..177ce04 100644 --- a/Dockerfile +++ b/Dockerfile @@ -7,9 +7,9 @@ RUN pip install --no-cache-dir -r requirements.txt COPY . . -RUN flask db init -RUN flask db migrate -RUN flask db upgrade +RUN flask db init \ + && flask db migrate\ + && flask db upgrade -CMD flask run --host 0.0.0.0 +CMD [ "flask", "run", "--host", "0.0.0.0" ] EXPOSE 5000