In terms of doing it once to verify how this is done you can use the docker cp
command from the host machine -> https://docs.docker.com/engine/reference/commandline/cp/
But I agree with Meiram, this is bad practice. You want to be able to have the ability to revert back to a previous version of not only the code but also the container.
There is a very good tutorial here integrating Docker/DockerHub with Github, Jenkins, and even Sonarqube.
https://docs.docker.com/engine/reference/commandline/cp/https://medium.com/@hakdogan/an-end-to-end-tutorial-to-continuous-integration-and-continuous-delivery-by-dockerize-jenkins-f5b9b45b610d