uwsgi.dockerfile 315 B

123456789
  1. FROM tfb/python2:latest
  2. ADD ./ /uw
  3. WORKDIR /uw
  4. RUN pip install --install-option="--prefix=${PY2_ROOT}" -r /uw/requirements.txt
  5. CMD uwsgi --master -L -l 5000 --gevent 1000 --http :8080 --http-keepalive --http-processes $(nproc) -p $(nproc) -w hello --add-header "Connection: keep-alive" --pidfile /tmp/uwsgi.pid