Using the ADD command in a Dockerfile, I am trying to download the entire content of a folder to an image.
FROM centos:7
RUN yum -y install httpd
ADD https://github.com/ricardoandre97/docker-en-resources/tree/master/docker-images/templates/startbootstrap-freelancer-master/ /temp/
RUN cp /temp/startbootstrap-freelancer-master/ /var/www/html/
CMD apachectl -DFOREGROUND
Now, the folder /temp contains a file (not a folder!) named startbootstrap-freelancer-master
.
As described in here https://stackoverflow.com/questions/66187161/download-a-folder-from-github-with-docker-add[][1], I cannot use the alpine command, since I am in centos:
RUN svn export https://github.com/...
I tried with curl:
RUN curl -L https://github.com/ricardoandre97/docker-en-resources/tree/master/docker-images/templates/startbootstrap-freelancer-master/
but I don't find where it downloaded.