title: How can I pass JAVA_OPTS to tomcat in a docker container?
body: <p>I want to run my spring-boot application with a certain profile. Therefore, I need to pass the <code>-Dspring.profiles.active=dev</code> argument to the JVM.</p>
  
  <p>My dockerfile looks like this:</p>
  
  <pre><code>FROM tomcat:9.0.10-jre8
  
  EXPOSE 8080
  ENV JAVA_OPTS="-Dspring.profiles.active=dev"
  COPY myapp.war /usr/local/tomcat/webapps/myapp.war
  </code></pre>
  
  <p>The application starts but the JVM option with the profile name does not seem to be set.
  What am I missing?</p>