RUN bash -c ‘touch /app.jar’ in dockerfile

  docker, question

ADD eureka-server-0.0.1-SNAPSHOT.jar app.jar

RUN bash -c ‘touch /app.jar’

What does this RUN bash -c ‘touch /app.jar’ command mean and function?

From the point of view of the command itself, it is to execute a touch command, the previous add command copies the jar in the past, and the function of the latter touch command is to modify the access time and modification time of this file to the current time.