Maven Docker No goals have been specified

I have a maven based dockerfile as below which works fine in kubernetes cause I do not need to install chrome driver. But for my local environment I need to install and I added as below with ARG. But when I would to run the image I received below error. Here is how ı run the image docker run tests_docker mvn clean test --projects HubTestAutomation --also-make -Denvironment=development -Ddhc=true ..

[ERROR] No goals have been specified for this build. You must specify a valid lifecycle phase or a goal in the format <plugin-prefix>:<goal> or <plugin-group-id>:<plugin-artifact-id>[:<plugin-version>]:<goal>. Available lifecycle phases are: validate, initialize, generate-sources, process-sources, generate-resources, process-resources, compile, process-classes, generate-test-sources, process-test-sources, generate-test-resources, process-test-resources, test-compile, process-test-classes, test, prepare-package, package, pre-integration-test, integration-test, post-integration-test, verify, install, deploy, pre-clean, clean, post-clean, pre-site, site, post-site, site-deploy. -> [Help 1]

I already verified that pom.xml is in the container.

---> 707c22c40a8e
Step 4/25 : RUN  cd /app         && ls -ltra
 ---> Running in f4a983720d62
total 68
drwxr-xr-x 1 test test 4096 Jul  2 13:40 .settings
drwxr-xr-x 1 test test 4096 Sep 24 06:45 TestAutomationUtilities
drwxr-xr-x 1 test test 4096 Sep 24 06:45 HubTestAutomation
drwxr-xr-x 1 test test 4096 Sep 24 06:45 ConfigTestAutomation
-rwxr-xr-x 1 test test 2004 Sep 28 10:56 settings.xml
-rwxr-xr-x 1 test test 8737 Oct  5 09:29 pom.xml
-rwxr-xr-x 1 test test 2107 Oct  5 10:55
-rwxr-xr-x 1 test test 2415 Oct  8 12:38 Dockerfile
drwxr-xr-x 1 test test 4096 Oct  8 12:38 .
drwxr-xr-x 1 root   root   4096 Oct  8 12:38 ..
Removing intermediate container f4a983720d62


  #Choose base
    FROM maven:latest
    COPY . /app
    RUN useradd --uid 555 -ms /bin/bash -d /home/test test 
        && mkdir -p /home/test/.m2 && chmod -R 755 /home && chmod -R 755 /home/test/ && chown -R test:test /home/test/ 
        && chmod -R 755 /app && chown -R test:test /app
    RUN  cd /app 
         && ls -ltra
    COPY settings.xml /home/test/.m2/
    RUN chmod 755 home/test/.m2/settings.xml
    # Set arg for environment selection
    #Version numbers for browsers
    ARG CHROME_VERSION=85.0.4183.121-1
    #Install Chrome for local environment
    ADD google-chrome.repo /etc/yum.repos.d/google-chrome.repo
        if [ "$ENV" = "local" ] ; 
        microdnf install --enablerepo=google-chrome -y google-chrome-stable 
        && sed -i 's/"$HERE/chrome"/"$HERE/chrome" --no-sandbox/g' /opt/google/chrome/google-chrome ; 
    #Install ChromeDriver for local environment
        if [ "$ENV" = "local" ] ; 
        microdnf install -y unzip 
        && curl -s -o /tmp/$CHROME_DRIVER_VERSION/ 
        && unzip /tmp/ -d /opt 
        && rm /tmp/ 
        && mv /opt/chromedriver /opt/c

        && chmod 755 /opt/chromedriver-$CHROME_DRIVER_VERSION 
        && ln -s /opt/chromedriver-$CHROME_DRIVER_VERSION /usr/bin/chromedriver ; 
    USER test
    WORKDIR /app

Source: Docker Questions