0

Need to download a folder from Github. Use this site to get a link: https://downgit.github.io/#/home Use the link in Dockerfile:

FROM nginx:alpine
ADD https://downgit.github.io/#/home?url=https://github.com/apache/flink-web/tree/asf-site/visualizer \
/usr/share/nginx/html
RUN apk update && apk upgrade && apk add bash && apk add unzip

But I receive an unnamedfile. It isn't a zip format. If I try to unzip - see a message incorrect format or archive.

How I can fix this issue and download a zip file? Is there exist a way to download a specific folder from Github in tar.gz?

adnryMono
  • 9
  • 1

1 Answers1

0

You can use svn to download subdirectory from github. Also you can list folders that you want to download by using "svn ls https://github.com/apache/flink-web/trunk". "visualizer" folder is under trunk subdirectory.

FROM nginx:alpine

USER root

RUN apk update &&  apk add subversion

RUN svn export https://github.com/apache/flink-web/trunk/visualizer
Mustafa Güler
  • 884
  • 6
  • 11