title: How to run Springboot application with Junit test with Docker File
body: <p>Right now I have my Dockerfile as below:</p>
  
  <pre><code>FROM openjdk:8-jdk-alpine
  ARG JAR_FILE=target/*.jar
  COPY ${JAR_FILE} app.jar
  ENTRYPOINT ["java","-jar","/app.jar"]
  </code></pre>
  
  <p>What if I want to run some junit test after I start the springboot application? I am using Maven for dependencies.</p>
  
  <p>Where should I put those lines?</p>
  
  <pre><code>mvn test
  mvn clean test
  mvn clean compile test
  </code></pre>
  
  <p>Or what other commands should I use?</p>