title: How to access app resource files stored in 'src/main/resources/someFolder' within a Docker container?
body: <p>I am working on a gradle based service that should run in a docker container in a kubernetes cluster. Locally, I can access the resources, some json files used for CouchDb initialisation. Once I build and deploy the service in Docker, the files are no longer accessible and I get file not found exception and can't start the service. I can see that my folder is in the generated jar but I can't access the files. 
  I am using it like follows:</p>
  
  <p><code>DesignDocument design = DesignDocumentManager.fromFile("design-documents/documents.json");</code></p>
  
  <p>which comes from the <a href="http://www.javadoc.io/doc/com.cloudant/cloudant-client/2.12.0" rel="nofollow noreferrer">IBM Cloudant Java Client API</a>. I have tried different versions from the path, i.e. with a leading slash or the absolute path from the project.</p>