-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
37 lines (29 loc) · 1.35 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
37
FROM spritsail/alpine:3.18
ARG TAUTULLI_VER=2.14.6
ARG TAUTULLI_BRANCH=master
ARG TIMEZONE=Etc/UTC
LABEL org.opencontainers.image.authors="Spritsail <[email protected]>" \
org.opencontainers.image.title="Tautulli" \
org.opencontainers.image.url="https://tautulli.com/" \
org.opencontainers.image.description="A Plex monitoring and statistics tool" \
org.opencontainers.image.version=${TAUTULLI_VER} \
io.spritsail.version.tautulli=${TAUTULLI_VER}
ENV SUID=905 SGID=900
# Disable updates when using Docker container
# https://github.com/Tautulli/Tautulli/commit/8690d2ced5e5afe8c8f3342881d478fed37c274d
ENV TAUTULLI_DOCKER=True
WORKDIR /tautulli
RUN apk --no-cache add python3 py-setuptools tzdata \
&& wget -O- https://github.com/Tautulli/Tautulli/tarball/v${TAUTULLI_VER} \
| tar xz --strip-components=1 \
# https://github.com/Tautulli/Tautulli/blob/master/plexpy/versioncheck.py#L120
&& printf "v$TAUTULLI_VER" > version.txt \
&& printf "$TAUTULLI_BRANCH" > branch.txt \
# Fix pytz default timezone to UTC
&& cp /usr/share/zoneinfo/${TIMEZONE} /etc/localtime \
&& apk --no-cache del tzdata
VOLUME ["/config", "/media"]
EXPOSE 8081
HEALTHCHECK --start-period=10s --timeout=5s \
CMD wget -qO /dev/null "http://localhost:8181/status"
CMD ["python3", "/tautulli/Tautulli.py", "--datadir", "/config", "--nolaunch", "--verbose"]