docker-tautulli/Dockerfile
Eric Nemchik 9e2dcc0bf0
Rebase master branch to Alpine 3.17 (#115)
* Rebase master branch to Alpine 3.17

* Fix ownership

* Use localhost

* Rewrite Dockerfile
Install from tarball instead of git

* Install git

* Whitespace

* Use build-base

* Adjust pip usage

* Revert "Adjust pip usage"

This reverts commit b454d70cbe7ee9cbdd9aab91719608336816526e.

* Modify dependency

* Use wheel index for pip requirements
2022-12-17 13:14:15 -06:00

65 lines
1.9 KiB
Docker
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# syntax=docker/dockerfile:1
FROM ghcr.io/linuxserver/baseimage-alpine:3.17
# set version label
ARG BUILD_DATE
ARG VERSION
ARG TAUTULLI_RELEASE
LABEL build_version="Linuxserver.io version:- ${VERSION} Build-date:- ${BUILD_DATE}"
LABEL maintainer="nemchik,thelamer"
# Inform app this is a docker env
ENV TAUTULLI_DOCKER=True
RUN \
echo "**** install build packages ****" && \
apk add --no-cache --virtual=build-dependencies \
build-base \
cargo \
python3-dev && \
echo "**** install packages ****" && \
apk add --no-cache \
git \
python3 && \
echo "**** install tautulli ****" && \
if [ -z ${TAUTULLI_RELEASE+x} ]; then \
TAUTULLI_RELEASE=$(curl -sX GET "https://api.github.com/repos/Tautulli/Tautulli/releases/latest" \
| jq -r '. | .tag_name'); \
fi && \
mkdir -p /app/tautulli && \
curl -o \
/tmp/tautulli.tar.gz -L \
"https://github.com/Tautulli/Tautulli/archive/${TAUTULLI_RELEASE}.tar.gz" && \
tar xf \
/tmp/tautulli.tar.gz -C \
/app/tautulli --strip-components=1 && \
cd /app/tautulli && \
sed -i 's/^backports.zoneinfo==0.2.1$/backports.zoneinfo==0.2.1;python_version<"3.9"/' requirements.txt && \
python3 -m ensurepip && \
pip3 install -U --no-cache-dir \
pip \
wheel && \
pip3 install -U --no-cache-dir --find-links https://wheel-index.linuxserver.io/alpine-3.17/ \
cryptography \
pycryptodomex \
pyopenssl && \
pip3 install -U --no-cache-dir --find-links https://wheel-index.linuxserver.io/alpine-3.17/ -r requirements.txt && \
echo "**** Hard Coding versioning ****" && \
echo "${TAUTULLI_RELEASE}" > /app/tautulli/version.txt && \
echo "master" > /app/tautulli/branch.txt && \
echo "**** cleanup ****" && \
apk del --purge \
build-dependencies && \
rm -rf \
/tmp/* \
$HOME/.cache \
$HOME/.cargo
# add local files
COPY root/ /
# ports and volumes
EXPOSE 8181
VOLUME /config