Install youtube-dl and also a shortcut for peertube cli

This commit is contained in:
Girish Ramakrishnan 2020-10-13 22:17:15 -07:00
parent c3eabb7097
commit 457f583448

View file

@ -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" ]