Docker Community Forums

Share and learn in the Docker community.

Best practices for getting code into a container (git clone vs. copy vs. data container)

docker

(Nirandaperera) #21

Hi @dineshbhat
the entrypoint method seems to be a very simple approach. May I know if you were able to get it working?
According to this [1], it should be possible

[1] https://docs.docker.com/engine/reference/builder/#understand-how-cmd-and-entrypoint-interact
Best


(1133685) #22

Hi

I need basic thing how can i clone public git repo into docker container, but still not found any helpful information. Seriously very poor documentation from docker.


(Killstreet) #23

This is not remotely what docker themselves should handle, non the less, install git and do git clone either inside the container, or, as more prefered you run git clone outside the container, and use the copy method provided with docker to copy the project inside the container.