From 457f583448884ad275c16a418e4d1e5660fdb639 Mon Sep 17 00:00:00 2001 From: Girish Ramakrishnan Date: Tue, 13 Oct 2020 22:17:15 -0700 Subject: [PATCH] Install youtube-dl and also a shortcut for peertube cli --- Dockerfile | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Dockerfile b/Dockerfile index 73b2faf..3f8f297 100644 --- a/Dockerfile +++ b/Dockerfile @@ -25,10 +25,15 @@ RUN mkdir /app/code/cli && \ RUN ln -sf /app/data/production.yaml /app/code/server/config/production.yaml && \ ln -sf /app/data/local-production.json /app/code/server/config/local-production.json +# youtube-dl +RUN curl -L https://yt-dl.org/downloads/latest/youtube-dl -o /usr/local/bin/youtube-dl && chmod +x /usr/local/bin/youtube-dl + COPY production.yaml.example start.sh /app/pkg/ ENV NODE_ENV production ENV NODE_CONFIG_DIR /app/code/server/config +RUN echo 'alias peertube="cd /app/code/cli && node dist/server/tools/peertube.js"' > ~/.bashrc + CMD [ "/app/pkg/start.sh" ]