title: Play Framework 2.5 in production: "bad root server path"
body: <p>I would like to use a prod.conf file in production inside a Docker container. I added this to my Dockerfile:</p>
  
  <pre><code>ENTRYPOINT ["bin/myapp", "-D", "config.resource=prod.conf"]
  </code></pre>
  
  <p>But I got this error:</p>
  
  <pre><code>Bad root server path: /opt/docker/-D
  </code></pre>
  
  <p>I get the same error when I try to run the command manually as root</p>
  
  <pre><code>/opt/docker/bin/myapp -D config.resource=prod.conf
  </code></pre>
  
  <p>If I run</p>
  
  <pre><code>/opt/docker/bin/myapp
  </code></pre>
  
  <p>It works but using the default application.conf file.</p>
  
  <p>I guess there is no permission issue.</p>
  
  <p>Here is my full Dockerfile:</p>
  
  <pre><code>FROM openjdk:8u121-alpine
  WORKDIR /opt/docker
  ADD opt /opt
  RUN ["chown", "-R", "daemon:daemon", "."]
  EXPOSE 9000
  USER daemon
  ENTRYPOINT ["bin/myapp", "-D", "config.resource=prod.conf"]
  CMD []
  </code></pre>
  
  <p><strong>Edit:</strong></p>
  
  <p>I got the same error locally:</p>
  
  <pre><code>activator clean stage
  target/universal/stage/bin/myapp -D config.resource=prod.conf
  Bad root server path: /home/me/Documents/MyApp-D
  </code></pre>