title: Reload Nginx in during docker build
body: <p>I am trying to install nginx (and then nodejs) in my container. I have my own nginx config files in nginx/ folder:</p>
  
  <pre><code># --- Release with Alpine ----
  FROM phusion/baseimage:0.10.1
  
  # Create app directory
  WORKDIR /app
  
  RUN apt-get update \
      &amp;&amp; apt-get -y install nginx
  
  RUN ls /etc/nginx
  COPY nginx/nginx.conf /etc/nginx/nginx.conf
  RUN ls /etc/nginx
  
  RUN ls /etc/nginx/sites-enabled
  RUN rm /etc/nginx/sites-enabled/default
  COPY nginx/serverlogic /etc/nginx/sites-enabled/serverlogic
  RUN ls /etc/nginx/sites-enabled
  
  RUN nginx -s reload
  
  RUN echo "$PWD FINALFINALFINAL" &amp;&amp; ls
  
  EXPOSE 8080
  </code></pre>
  
  <p>But I get an error on <code>RUN nginx -s reload</code> line saying: "nginx: [error] open() "/run/nginx.pid" failed (2: No such file or directory)". What is that?</p>
  
  <p>p.s. Is there some image on docker hub with ubuntu, node.js and nginx installed? I want to put them in one container for simplicity.</p>