-
Notifications
You must be signed in to change notification settings - Fork 0
/
dockerfile
36 lines (32 loc) · 1.54 KB
/
dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
FROM ghcr.io/linuxserver/baseimage-alpine:3.16
###############################################################################
# YTDL-RSS INSTALL
# COPY root/ /
WORKDIR /config
RUN apk update --no-cache
RUN apk upgrade --no-cache
RUN apk add --update bash
RUN apk --no-cache add ca-certificates python3 py3-pip ffmpeg tzdata nano curl go git make musl-dev
RUN ln -sf python3 /usr/bin/python
RUN python3 -m ensurepip
RUN pip3 install --no-cache --upgrade pip setuptools
RUN python3 -m pip install -U yt-dlp
RUN export GOPATH=/root/go
RUN export PATH=${GOPATH}/bin:/usr/local/go/bin:$PATH
RUN export GOBIN=$GOROOT/bin
RUN mkdir -p ${GOPATH}/src ${GOPATH}/bin
RUN export GO111MODULE=on
RUN cp /usr/share/zoneinfo/Australia/Melbourne /etc/localtime
RUN echo "Australia/Melbourne" > /etc/timezone
RUN wget -O /tmp/DownloadYouTubePlexGo.tar.gz https://github.com/awirthy/DownloadYouTubePlexGo/archive/refs/tags/v1.00.tar.gz
RUN mkdir -p /opt/DownloadYouTubePlexGo
RUN tar zxf /tmp/DownloadYouTubePlexGo.tar.gz -C /opt/DownloadYouTubePlexGo
RUN echo "#!/bin/sh" >> /etc/periodic/15min/DownloadYouTubePlexGo
RUN echo "/opt/DownloadYouTubePlexGo/DownloadYouTubePlexGo-1.00/DownloadYouTubePlexGo.sh" >> /etc/periodic/15min/DownloadYouTubePlexGo
RUN chmod 755 /opt/DownloadYouTubePlexGo/DownloadYouTubePlexGo-1.00/DownloadYouTubePlexGo.sh
RUN chmod 755 /etc/periodic/15min/DownloadYouTubePlexGo
CMD ["crond", "-f","-l","8"]
###############################################################################
# CONTAINER CONFIGS
ENV EDITOR="nano" \
#ENV TZ="Australia/Melbourne" \