From 70afa6daf7d5cb69386c9e5199a0d383fec5e473 Mon Sep 17 00:00:00 2001 From: Abhilash Raj Date: Fri, 21 Apr 2017 16:06:23 -0700 Subject: [PATCH] Run uwsgi in CMD. --- web/Dockerfile | 2 ++ web/assets/run.sh | 3 +-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/web/Dockerfile b/web/Dockerfile index db2df1d..2b03b85 100644 --- a/web/Dockerfile +++ b/web/Dockerfile @@ -33,3 +33,5 @@ WORKDIR /opt/mailman-web EXPOSE 8000 ENTRYPOINT ["/opt/run.sh"] + +CMD ["uwsgi", "--http-auto-chunked --http-keepalive --logto $UWSGI_LOG_URL"] diff --git a/web/assets/run.sh b/web/assets/run.sh index df20830..17a65c5 100755 --- a/web/assets/run.sh +++ b/web/assets/run.sh @@ -107,5 +107,4 @@ if [[ ! -v UWSGI_WSGI_FILE ]]; then export UWSGI_THREADS=4 fi -# Run the web server. -uwsgi --http-auto-chunked --http-keepalive --logto "$UWSGI_LOG_URL" +exec $@