title: Run mvn commands as part of the docker file using Entrypoint and/or CMD
body: <p>How can we run mvn commands from a Dockerfile</p>
  <p>Here is my Dockerfile:</p>
  <pre><code>FROM maven:3.3.9-jdk-8-alpine
  WORKDIR /app
  COPY code /app
  WORKDIR /app
  ENTRYPOINT [&quot;mvn&quot;]
  CMD [&quot;clean test -Dsurefire.suiteXmlFiles=/app/abc.xml&quot;]
  </code></pre>
  <p>I tried to build and run the above image and it fails ( abc.xml is under the /app directory)</p>
  <p>Is there a way to get this to work.</p>