title: Dockerfile file not found in keycloak docker image
body: <p>I recently tried to clone our production code in local setup which means this code is running in production.</p>
  
  <p>The docker file looks like</p>
  
  <pre><code>FROM jboss/keycloak
  
  COPY km.json /opt/jboss
  COPY entrypoint.sh /opt/jboss
  
  USER root
  RUN chown jboss /opt/jboss/entrypoint.sh &amp;&amp; chmod +x /opt/jboss/entrypoint.sh
  USER 1000
  
  ENTRYPOINT ["/opt/jboss/entrypoint.sh"]
  CMD [""]
  </code></pre>
  
  <p>I am successfully able to create docker image but when I try to run it I get error</p>
  
  <pre><code>Caused by: java.io.FileNotFoundException: km.json (No such file or directory)
  </code></pre>
  
  <p>Repo structure</p>
  
  <pre><code>km/keycloak-images/km.json
  km/keycloak-images/DockerFile
  km/keycloak-images/entrypoint.sh
  </code></pre>
  
  <p>Docker compose file structure</p>
  
  <pre><code>/km/docker-compose.yml
  /km/docker-compose.dev.yml
  </code></pre>
  
  <p>The docker-compose.dev.yml looks like </p>
  
  <pre><code>version: '3'
  
  # The only service we expose in local dev is the keycloak server
  # running an h2 database.
  services:
    keycloak:
      build: keycloak-image
      image: dt-keycloak
      environment:
        DB_VENDOR: h2
        KEYCLOAK_USER: admin
        KEYCLOAK_PASSWORD: password
        KEYCLOAK_HOSTNAME: localhost
      ports:
        - 8080:8080
  </code></pre>
  
  <p>I run the command from /km</p>
  
  <pre><code>docker-compose -f docker-compose.dev.yml up --build
  </code></pre>