forked from zSeriesGuy/Tautulli
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
63 lines (58 loc) · 1.51 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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
FROM lsiobase/alpine:3.12
# set version label
ARG BUILD_DATE
ARG VERSION
ARG MULTITAUTULLI_RELEASE
LABEL build_version="Multi Tautulli"
LABEL maintainer="timekills"
# Inform app this is a docker env
ENV MULTITAUTULLI_DOCKER=True
RUN \
echo "**** install build packages ****" && \
apk add --no-cache --virtual=build-dependencies \
curl \
# g++ \
# gcc \
# make \
# python3 \
# python3-venv \
py3-pip \
# python3-all-dev && \
echo "**** install packages ****" && \
apk add --no-cache \
# jq \
# py3-openssl \
# py3-setuptools \
python3 \
python3-venv \
python3-all-dev && \
echo "**** install pip packages ****" && \
# pip3 install --no-cache-dir -U \
# mock \
# plexapi \
# pycryptodomex && \
echo "**** install app ****" && \
cd /opt \
git clone https://github.com/zSeriesGuy/Tautulli.git \
addgroup tautulli && adduser --system --no-create-home tautulli --ingroup tautulli \
chown tautulli:tautulli -R /opt/Tautulli \
cd Tautulli \
python3 -m venv /opt/Tautulli \
source /opt/Tautulli/bin/activate \
pip3 install -r /opt/Tautulli/requirements.txt \
echo "**** cleanup ****" && \
apk del --purge \
build-dependencies && \
rm -rf \
/root/.cache \
/tmp/* \
echo "**** Starting Multi Tautulli ****" && \
cp /opt/Tautulli/init-scripts/init.systemd /lib/systemd/system/tautulli.service \
systemctl daemon-reload && sudo systemctl enable tautulli.service \
systemctl start tautulli.service
# /opt/Tautulli/bin/python3 Tautulli.py
# add local files
COPY root/ /
# ports and volumes
VOLUME /config /logs
EXPOSE 8181