forked from I-am-PUID-0/pd_zurg
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
25 lines (23 loc) · 957 Bytes
/
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
FROM rclone/rclone:latest
WORKDIR /
ADD https://github.com/itsToggle/plex_debrid/archive/refs/heads/main.zip /
ADD . / ./
ADD https://raw.githubusercontent.com/debridmediamanager/zurg-testing/main/config.yml /zurg/
ENV \
XDG_CONFIG_HOME=/config \
TERM=xterm
RUN \
apk add --update --no-cache gcompat libstdc++ libxml2-utils curl tzdata nano ca-certificates wget fuse3 python3 build-base py3-pip python3-dev linux-headers && \
ln -sf python3 /usr/bin/python && \
unzip main.zip && \
rm main.zip && \
mkdir /log && \
mv plex_debrid-main/ plex_debrid && \
python3 -m venv /venv && \
source /venv/bin/activate && \
pip3 install --upgrade pip && \
pip3 install -r /plex_debrid/requirements.txt && \
pip3 install -r /requirements.txt
HEALTHCHECK --interval=60s --timeout=10s \
CMD ["/bin/sh", "-c", "source /venv/bin/activate && python /healthcheck.py"]
ENTRYPOINT ["/bin/sh", "-c", "source /venv/bin/activate && python /main.py"]