mirror of
https://git.cloudron.io/cloudron/peertube-app.git
synced 2024-11-25 11:01:14 +00:00
Install youtube-dl and also a shortcut for peertube cli
This commit is contained in:
parent
c3eabb7097
commit
457f583448
1 changed files with 5 additions and 0 deletions
|
@ -25,10 +25,15 @@ RUN mkdir /app/code/cli && \
|
||||||
RUN ln -sf /app/data/production.yaml /app/code/server/config/production.yaml && \
|
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
|
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/
|
COPY production.yaml.example start.sh /app/pkg/
|
||||||
|
|
||||||
ENV NODE_ENV production
|
ENV NODE_ENV production
|
||||||
ENV NODE_CONFIG_DIR /app/code/server/config
|
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" ]
|
CMD [ "/app/pkg/start.sh" ]
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue