-
Notifications
You must be signed in to change notification settings - Fork 15
/
Dockerfile
28 lines (22 loc) · 1.01 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
FROM rclone/rclone:latest AS rclone-stage
FROM python:3.11-alpine
COPY --from=rclone-stage /usr/local/bin/rclone /usr/local/bin/rclone
WORKDIR /
ADD . / ./
ADD https://raw.githubusercontent.com/debridmediamanager/zurg-testing/main/config.yml /zurg/
ADD https://raw.githubusercontent.com/debridmediamanager/zurg-testing/main/scripts/plex_update.sh /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 ffmpeg rust cargo && \
ln -sf python3 /usr/bin/python && \
mkdir /log && \
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"]