I have a python project that I am writing a dockerfile for. This project depends on another python project of mine that is hosted in a private github account of mine.
How do I go about making the dockerfile properly load in the other project as a dependency (using my requirements.txt file)?
I tried copying my private ssh key into the:
/root/.ssh
directory as part of the DockerFile, and including the clone url as part of the requirements.txt file, but this just feels wrong since my private key will be stored in one of the docker image layers.
Are there best practices for this?