title: Cannot run executable from Dockerfile
body: <p>I have tried in various ways to run the following command:</p>
  
  <p>shell form:</p>
  
  <pre><code>CMD java -jar ImageTester.jar -ml LAYOUT -k $APIKEY -f ../screenshots -p $PROXY -s $URL
  </code></pre>
  
  <p>I get the following error:</p>
  
  <pre><code>/bin/sh: 1: java: not found
  </code></pre>
  
  <p>exec form:</p>
  
  <pre><code>CMD [ "java", "-jar", "ImageTester.jar", "-ml LAYOUT -k $APIKEY -f ../screenshots -p $PROXY -s $URL" ]
  </code></pre>
  
  <p>I get this error:</p>
  
  <pre><code>container_linux.go:247: starting container process caused "exec: \"java\": executable file not found in $PATH"
  </code></pre>
  
  <p>My Dockerfile:</p>
  
  <pre><code>FROM node:8
  RUN node --version
  
  RUN npm install
  RUN npm i puppeteer
  
  CMD [ "java", "-jar", "ImageTester.jar", "-ml LAYOUT -k $APIKEY -f ../screenshots -p $PROXY -s $URL" ]
  </code></pre>
  
  <p>As your can expect, this works in my local.  What am I missing?</p>