I was writing a docker file to copy some war files in the webapps folder of tomcat container. The war files are contained inside target folder after maven build.
ARG BUILD_VERSION=1.0
COPY STUDENT_MANAGER/target/STUDENT-${BUILD_VERSION}/*.war /opt/tomcat/webapps
How can I remove the build version and write something like
COPY STUDENT_MANAGER/target/STUDENT*/*.war /opt/tomcat/webapps
I want to remove the build number as I want to automate the docker build and copy the files irrespective of build version.