title: Add jars to Docker image from Plugin Directory
body: <p>I have a spring boot application which contains a Main Class. I have Docker File as below:</p>
  
  <pre><code>FROM docker.io/openjdk:11-jre-slim
  EXPOSE 8082
  EXPOSE 8443
  ADD target/base-application.jar app.jar
  ENV JAVA_OPTS=""
  ENTRYPOINT exec java $JAVA_OPTS -Dspring.profiles.active=prod -jar /app.jar
  </code></pre>
  
  <p>I am creating a Docker image by using this Docker file. Let's consider that this docker file is <code>Docker1</code>.</p>
  
  <p>I have another Spring Boot application (which doesn't have a Main class) with Docker file as below:</p>
  
  <pre><code>FROM Docker1:0.0.1
  EXPOSE 8443
  ADD target/child-application.jar child-application.jar
  ENV JAVA_OPTS=""
  ENTRYPOINT exec java $JAVA_OPTS -Dspring.profiles.active=dev -jar /app.jar
  </code></pre>
  
  <p>I am using <code>Docker1</code> as a base image for the docker image of 2nd application. I am running the Main class of <code>Docker1</code> by running 2nd Docker image. Now there are 2 jar files of another spring boot projects(<code>messagepack1.jar</code> &amp;  <code>messagepack2.jar</code>). I want to load these jars in the 2nd docker image. I am trying something like this:</p>
  
  <pre><code>FROM Docker1:0.0.1
  EXPOSE 8443
  COPY src/main/resources/message-packs/messagepack1.jar m1.jar
  COPY src/main/resources/message-packs/messagepack2.jar m2.jar
  ADD target/child-application.jar child-application.jar
  ENV JAVA_OPTS=""
  ENTRYPOINT exec java $JAVA_OPTS -Dspring.profiles.active=dev -jar /app.jar
  </code></pre>
  
  <p>But it is not loading the jars when I am running the 2nd Docker image. Can you please help me out?</p>