Docker error: mvn not installed

This is my Dockerfile. I get mvn not installed. What to do ? I need maven to build my java project

FROM amazoncorretto:latest COPY . . RUN mvn install ADD target/test.jar /tmp 

How to fix this ?

submitted by /u/anacondaonline
[link] [comments]
Source: Reddit