uwsgi.dockerfile 370 B

123456789101112
  1. FROM python:3.9-bullseye
  2. RUN apt-get update -yqq
  3. RUN apt-get install python3-dev -y
  4. WORKDIR /uw
  5. COPY ./ /uw
  6. RUN pip3 install -U pip; pip3 install -r /uw/requirements.txt
  7. EXPOSE 8080
  8. 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