How to copy file to a container in docker

  docker, docker-compose

I have a docker-compose and a docker file.

In the docker file, I have COPY instructions where I specify

The problem is, I have a new JAR file in the same folder as my dockerfile but it keeps copying the older jar. I have no idea of where it is getting the older jar. I have made sure to have only one jar.

COPY ./xxxx.jar /home/dev/xxxxd.jar

Source: Docker Questions

LEAVE A COMMENT