I'm building a docker image. I want the image to be able to pull from private repos. Per some advice I found on a blog, I have this line in the Dockerfile
:
RUN git config --global url."https://<access_token_goes_here>:@github.com/".insteadOf "https://github.com/"
It works, but now I've got the access token embedded in the container and in the Dockerfile which doesn't seem secure.
What's the best practice for this?