Start uwsgi from Docker
<p>Im trying to "dockerize" my web application which uses uwsgi.</p>

<p>My problem is that when I run <code>uwsgi --ini uwsgi.ini</code> from the Dockerfile it does not start the uwsgi process. 
<strong>What am I doing wrong?</strong></p>

<p>My Dockerfile looks like this (simplified):</p>

<pre><code>RUN mkdir /home/webapp/configuration
ADD uwsgi.ini /home/webapp/configuration
RUN uwsgi --ini /home/webapp/configuration/uwsgi.ini
</code></pre>

<p>Output when the image is build:</p>

<pre><code>Step 26 : RUN uwsgi --ini /home/webapp/configuration/uwsgi.ini
 ---&gt; Running in 832a29ebf40e
[uWSGI] getting INI configuration from /home/webapp/configuration/uwsgi.ini
 ---&gt; 3125dbfb1a75
</code></pre>

<p>Its very weird that uWSGI is getting the INI configuration, but the process does not start.</p>