title: "RUN ./configure" => not found in Docker, after "RUN cd srcdir && chmod +x ./configure" succeeds
body: <p>I am trying to build swig inside of a Dockerfile. However, when I try to run <code>./configure</code>, I get an error saying it is not found, although it is definitely there.</p>
  
  <p>Here is a working sample for swig installation using Dockerfile:</p>
  
  <pre><code>FROM nvidia/cuda:7.5-cudnn4-devel
  MAINTAINER Tim O'Shea &lt;tim.oshea753@gmail.com&gt;
  # install swig
  RUN apt-get install -y g++
  RUN apt-get install -y libpcre3 libpcre3-dev
  RUN wget "http://prdownloads.sourceforge.net/swig/swig-3.0.12.tar.gz"
  RUN chmod 777 swig-3.0.12.tar.gz
  RUN tar -xzvf swig-3.0.12.tar.gz
  RUN cd swig-3.0.12 &amp;&amp; chmod +x ./configure &amp;&amp; ls -l
  RUN ./configure --prefix=$(pwd)/swigtool
  RUN make
  RUN make install
  </code></pre>