title: Create File when my Spring boot is dockerized
body: <p>I'm running my Spring Boot application on docker and when I'm trying to create a new object I get this error (the object has an image where it saved in this path locally: <code>application-fe/src/assets</code>):</p>
  <blockquote>
  <p>class path resource [application-fe/src/assets] cannot be resolved to absolute file path because it does not reside in the file system: jar:file:/usr/app/target/springbot</p>
  </blockquote>
  <p>Does anyone know how to create a new file inside a docker container?</p>
  <p>When running locally I was doing this:</p>
  <pre class="lang-java prettyprint-override"><code>String pathToSave = &quot;application-fe/src/assets&quot;;
  Resource resource = new ClassPathResource(pathToSave);
  if (image != null) {
      File fileToSave = new File(resource.getFile() +&quot;\\&quot;+ this.region(region, city) + &quot;.png&quot;);
  </code></pre>