forked from RickDB/Docker-PlexAniSync
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
38 lines (28 loc) · 873 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
26
27
28
29
30
31
32
33
34
35
36
37
38
FROM python:3.9-alpine
LABEL maintainer frosty5689 <[email protected]>
RUN apk add --no-cache --update \
ca-certificates \
tzdata \
&& update-ca-certificates \
&& rm -rf /root/.cache
ENV PLEX_SECTION=Anime \
PLEX_URL=localhost \
PLEX_TOKEN='' \
ANI_USERNAME='' \
ANI_TOKEN='' \
INTERVAL=3600
ENV PATH="${PATH}:~/.local/bin"
ARG PLEXANISYNC_VERSION=master
RUN apk add --no-cache --update --virtual build-dependencies wget unzip && \
wget https://github.com/RickDB/PlexAniSync/archive/$PLEXANISYNC_VERSION.zip && \
unzip master.zip && \
rm master.zip && \
mv /PlexAniSync-master /plexanisync && \
cd /plexanisync && \
python3 -m pip install -r requirements.txt && \
cd .. && \
apk del build-dependencies
ADD run/* /plexanisync/
VOLUME /config
WORKDIR /plexanisync
CMD ["/plexanisync/start.sh"]