title: Docker cannot find JVM
body: <p>The container that I'm trying to build requires the JVM which I have installed at <code>/usr/lib/jvm/java-8-openjdk-amd64</code>. I've added the line</p>
  
  <pre><code>RUN ./installer.sh --javahome /usr/lib/jvm/java-8-openjdk-amd64
  </code></pre>
  
  <p>to to my <code>Dockerfile</code>. However I'm still getting the error message:</p>
  
  <pre><code>Searching for JVM on the system...
  Java Runtime Environment (JRE) was not found at the specified location /usr/lib/jvm/java-8-openjdk-amd64
  The command '/bin/sh -c ./installer.sh --javahome /usr/lib/jvm/java-8-openjdk-amd64' returned a non-zero code: 4
  </code></pre>
  
  <hr>
  
  <p><strong>Update</strong></p>
  
  <p>Here's the entire Docker file</p>
  
  <pre><code>FROM scratch
  MAINTAINER Oracle Linux Product Team &lt;ol-ovm-info_ww@oracle.com&gt;
  ADD oraclelinux-7.3-rootfs.tar.xz /
  
  # overwrite this with 'CMD []' in a dependent Dockerfile
  CMD ["/bin/bash"]
  
  RUN useradd me
  ADD . .
  
  RUN ./installer.sh --javahome /usr/lib/jvm/java-8-openjdk-amd64
  </code></pre>