title: /bin/sh: 1: ./configure: not found - dockerfile
body: <p>I need to install Cosign filter for Apacher server. </p>
  
  <p>I need to use this cosign-filter from <a href="https://www.wiki.ed.ac.uk/display/EASE/Building+Cosign+Filter+for+the+Apache+Webserver+from+Source" rel="noreferrer">Confluence</a>, but when my installation hits ./configure it trow as error:</p>
  
  <pre><code>ERROR: Unknown instruction: --ENABLE-APACHE2=/PATH/TO/APACHE2/BIN/APXS
  </code></pre>
  
  <p>Then i found out this <a href="http://documentation.its.umich.edu/node/596" rel="noreferrer">installation</a> for cosign filter with github repository, and because I use <code>ubuntu16.04</code> in my Docker container I found it more useful, but in this installation I have a problem with <code>autoconf</code> so when he hits <code>RUN autoconf</code> it trows this error:</p>
  
  <pre><code>autoconf: error: no input file
  ERROR: Service 'web' failed to build: The command '/bin/sh -c autoconf' returned a non-zero code: 1
  </code></pre>
  
  <p>Second error will happen when he hits <code>RUN ./configure --enable-apache2= which apx</code> it will trow this error:</p>
  
  <pre><code>Step 19/35 : RUN ./configure --enable-apache2=`which apxs`
   ---&gt; Running in 1e9f870df22f
  /bin/sh: 1: ./configure: not found
  ERROR: Service 'web' failed to build: The command '/bin/sh -c ./configure --enable-apache2=`which apxs`' returned a non-zero code: 127
  </code></pre>
  
  <p>Dockerfile configuration:</p>
  
  <pre><code>FROM ubuntu:16.04
  FROM python:3.5
  ENV PYTHONUNBUFFERED 1
  
  RUN cat /etc/passwd
  RUN cat /etc/group
  
  RUN apt-get update &amp;&amp; apt-get install -y \
      apache2 \
      apache2-dev \
      libapache2-mod-wsgi-py3 \
      autoconf \
      libssl-dev
  RUN apt-get install -y openssl
  RUN mkdir /var/run/sshd
  
  ENV APACHE_RUN_USER www-data
  ENV APACHE_RUN_GROUP www-data
  ENV APACHE_LOG_DIR /var/log/apache2
  ENV APACHE_LOCK_DIR /var/lock/apache2
  ENV APACHE_PID_FILE /var/run/apache2.pid
  
  # The Umich IAM copy of Cosign includes Apache 2.4 support
  RUN wget https://github.com/umich-iam/cosign/archive/master.tar.gz
  RUN tar xfz master.tar.gz
  RUN cd cosign-master
  RUN autoconf
  RUN ./configure --enable-apache2=`which apxs`
  RUN make
  RUN make isntall
  RUN mkdir -p /var/cosign/filter
  RUN chown www-data:www-data /var/cosign/filter
  
  RUN mkdir /code
  WORKDIR /code
  ADD requirements.txt /code/
  RUN pip install -r requirements.txt
  ADD . /code
  
  EXPOSE 80
  
  
  # Update the default apache site with the config we created.
  COPY 000-default.conf /etc/apache2/sites-enabled/000-default.conf
  
  RUN chown -R root:www-data /var/www
  RUN chmod u+rwx,g+rx,o+rx /var/www
  RUN find /var/www -type d -exec chmod u+rwx,g+rx,o+rx {} +
  RUN find /var/www -type f -exec chmod u+rw,g+rw,o+r {} +
  
  #essentially: CMD ["/usr/sbin/apachectl", "-D", "FOREGROUND"]
  CMD ["/tmp/start.sh"]
  </code></pre>
  
  <p>So is there a way I can fix this so I can install and configure this filter, thanks.</p>