title: Why I receive permission denied in Docker deployment?
body: <p>I have created an application in <a href="http://aws.amazon.com/elasticbeanstalk/" rel="nofollow">Elastic Beanstalk</a> to host a play framework 2 app there using instructions from <a href="https://github.com/CloudBees-community/play2-on-beanstalk" rel="nofollow">this</a> project.</p>
  
  <p>I have packaged the project exactly like Docker needs but when I upload the final zip to the application I receive a permission denied error in this flow:</p>
  
  <ul>
  <li>Environment update is starting.</li>
  <li>Deploying new version to instance(s).</li>
  <li>Successfully pulled dockerfile/java:latest</li>
  <li>Successfully built aws_beanstalk/staging-app</li>
  <li><strong>Docker container quit unexpectedly after launch: Docker container quit unexpectedly on Fri Sep 12 23:32:44 UTC 2014: 2014/09/12 23:32:39 exec: "bin/my-sample-project": permission denied. Check snapshot logs for details.</strong></li>
  </ul>
  
  <p>I have spent hours on this without any success.</p>
  
  <p>This is the content of my root Dockerfile:</p>
  
  <pre><code>FROM dockerfile/java
  MAINTAINER Cristi Boariu &lt;myemail&gt;
  EXPOSE 9000
  ADD files /
  WORKDIR /opt/docker
  RUN ["chown", "-R", "daemon", "."]
  USER daemon
  ENTRYPOINT ["bin/mytweetalerts"]
  CMD []
  </code></pre>
  
  <p>Any hint how to solve this issue?</p>