diff --git a/.dockerignore b/.dockerignore index 799025e..9391b47 100644 --- a/.dockerignore +++ b/.dockerignore @@ -7,3 +7,5 @@ .pytest_cache .mypy_cache /.idea +.tox +.make-cache \ No newline at end of file diff --git a/Dockerfile b/Dockerfile index 93bf9fb..6b2f7d8 100644 --- a/Dockerfile +++ b/Dockerfile @@ -55,12 +55,9 @@ WORKDIR /app ENV UWSGI_MODULE "giftless.wsgi_entrypoint" -ARG PORT=5000 -EXPOSE $PORT - ENTRYPOINT ["tini", "uwsgi", "--"] +CMD ["-s", "127.0.0.1:5000", "-M", "-T", "--threads", "2", "-p", "2", \ + "--manage-script-name", "--callable", "app"] + # TODO remove this STOPSIGNAL override after uwsgi>=2.1 STOPSIGNAL SIGQUIT - -CMD ["-s", "127.0.0.1:${PORT}", "-M", "-T", "--threads", "2", "-p", "2", \ - "--manage-script-name", "--callable", "app"]