title: Docker command fails during build, but succeeds while executed within running container
body: <p>the command : </p>
  
  <pre><code>docker build -t nginx-ubuntu . 
  </code></pre>
  
  <p>whith the Dockerfile below : </p>
  
  <pre>
  FROM ubuntu:12.10
  RUN apt-get update
  RUN apt-get -y install libpcre3 libssl-dev
  RUN apt-get -y install libpcre3-dev
  RUN apt-get -y install wget zip gcc
  RUN wget http://nginx.org/download/nginx-1.4.1.tar.gz
  RUN gunzip nginx-1.4.1.tar.gz
  RUN tar -xf nginx-1.4.1.tar
  RUN wget --no-check-certificate https://github.com/max-l/nginx_accept_language_module/archive/master.zip
  RUN unzip master
  RUN cd nginx-1.4.1
  RUN ./configure --add-module=../nginx_accept_language_module-master --with-http_ssl_module --with-pcre=/lib/x86_64-linux-gnu --with-openssl=/usr/lib/x86_64-linux-gnu
  </pre>
  
  <p>Fails at the last line (./configure ...)</p>
  
  <p>If I remove the last line and run a bash in the container, and 
  execute the last line manually, it works.</p>
  
  <p>I would expect that whatever command runs successfully within a container should work
  when the command is appended in the Dockerfile (prefixed by RUN) </p>
  
  <p>am I missing something ? </p>