yoonwaiyan / stackskills-dl

Simple Ruby script to download all StackSkills tutorials.
https://yoonwaiyan.github.io/stackskills-dl/
MIT License
59 stars 19 forks source link

Docker build fails #63

Closed merberich closed 3 years ago

merberich commented 3 years ago

Apparently the SSL certificates have changed since this project started, which causes Docker builds to fail when grabbing youtube-dl. Making the following change allows build to complete successfully.

--- a/Dockerfile
+++ b/Dockerfile
@@ -16,6 +16,8 @@ RUN apk add --no-cache git vim build-base wget
 # https://github.com/rg3/youtube-dl
 RUN set -x \
   && apk add --no-cache ca-certificates curl ffmpeg python gnupg \
+  && curl --remote-name --time-cond cacert.pem https://curl.haxx.se/ca/cacert.pem \
+  && export SSL_CERT_FILE=cacert.pem \
   && curl -Lo /usr/local/bin/youtube-dl https://yt-dl.org/downloads/latest/youtube-dl \
   && curl -Lo youtube-dl.sig https://yt-dl.org/downloads/latest/youtube-dl.sig \
   && gpg --keyserver keyserver.ubuntu.com --recv-keys '7D33D762FD6C35130481347FDB4B54CBA4826A18' \
yoonwaiyan commented 3 years ago

Thanks for reporting and providing the solution! I'll commit the fix.