Dockerfile and dpkg command : <p>I'm trying to create a Dockerfile to install VuFind.</p>

<p>This is my Dockerfile:</p>

<pre><code>#Name of container: docker-vufind:3

# Pull base image
FROM ubuntu:16.04
MAINTAINER xxx  "xxx@mail.com"

#Install latest patches
RUN apt-get update &amp;&amp; apt-get install -y \
    &amp;&amp; apt-get install -y wget 

#Obtain the package
RUN wget http://downloads.sourceforge.net/vufind/vufind_3.1.1.deb?use_mirror=osdn -O vufind_3.1.1.deb

#Install it
RUN dpkg -i vufind_3.1.1.deb

#Install VuFind's dependecies
RUN apt-get install -y -f
</code></pre>

<p>I launched these commands on my Ubuntu's bash and the software worked fine, but it seems that I can't obtain the same result with the Dockerfile because the dpkg command failed for the lack of the dependencies.</p>

<pre><code>The command '/bin/sh -c dpkg -i vufind_3.1.1.deb' returned a non-zero code: 1
</code></pre>

<p>Is installing the dependecies (Apache, jdk, php...) before the dpkg command line the only way to create a working Dockerfile or is there a shorter way ?</p>
