Browse Source

changed to dockerfile

Toastie 2 years ago
parent
commit
d7f10209a1
2 changed files with 12 additions and 4 deletions
  1. 12 0
      Dockerfile.yt-dl
  2. 0 4
      youtube.sh

+ 12 - 0
Dockerfile.yt-dl

@@ -0,0 +1,12 @@
+FROM arm32v6/bash
+
+RUN apk add curl python2 \
+  && curl -L https://yt-dl.org/downloads/latest/youtube-dl -o /usr/local/bin/youtube-dl
+  && chmod a+rx /usr/local/bin/youtube-dl
+  && apk del curl
+
+USER nobody
+
+ENTRYPOINT ["/usr/local/bin/youtube-dl"]
+
+CMD ["-g", "https://www.youtube.com/watch?v=FJWd92Vi5Ww"]

+ 0 - 4
youtube.sh

@@ -1,4 +0,0 @@
-sudo curl -L https://yt-dl.org/downloads/latest/youtube-dl -o /usr/local/bin/youtube-dl
-sudo chmod a+rx /usr/local/bin/youtube-dl
-
-youtube-dl -g https://www.youtube.com/watch?v=FJWd92Vi5Ww