title: Spring boot cant find application-$profile.properties file: Docker file
body: <p>Docker file: Spring unable to find profile.properties file</p>
  
  <p>FROM java:8u111-jre</p>
  
  <pre><code>ARG VERSION
  ARG PROFILE
  
  RUN mkdir /app
  WORKDIR /app
  RUN chown 1001:0 -R /app
  RUN chmod 777 /app
  COPY target/jira2bd-$VERSION.jar app.jar
  USER 1001
  
  CMD java  $JAVA_OPTS -jar /app.jar --spring.profiles.active=$PROFILE
  EXPOSE 8080
  </code></pre>