FROM doublehorn/uwsgi-nginx-base:latest COPY requirements.txt . RUN pip install -r requirements.txt COPY . /app WORKDIR /app CMD ["/usr/bin/supervisord"]
This version uses a onbuild scenario where the base image already knows to install your requirements.txt and copies your application to /usr/src/app. It expects a /usr/src/app/uwsgi.ini to exist. This image should only be used if you expect to have a application which would require an HTTP interface.
This image also has a built in stats collector for uwsgi and will attempt to post stats to http://service-stats with the hostname and stats.
You can disable this functionality by replacing /etc/supervisor/conf.d/programs.conf
Required Files for Each Service
At base of your service you should have a uwsgi.ini, heres a sample:
[uwsgi] socket=/tmp/uwsgi.sock chown-socket=nginx:nginx chmod-socket=664 wsgi-file=/app/app.py processes=5