docker-tautulli/Dockerfile.aarch64
Eric Nemchik d9cd3d94f9
Rebase develop branch to Alpine 3.17 (#114)
* Rebase develop branch to Alpine 3.17.

* Fix ownership

* Use localhost

* Rewrite Dockerfile
Install from tarball instead of git

* Install git

* Use build-base

* Adjust pip usage

* Revert "Adjust pip usage"

This reverts commit 58ddaae29fc81c9e129686b635c90e3af29e3951.

* Modify dependency

* Use wheel index for pip requirements
2022-12-16 10:07:31 -06:00

66 lines
1.9 KiB
Docker
Raw Permalink 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:arm64v8-3.17
# set version label
ARG BUILD_DATE
ARG VERSION
ARG TAUTULLI_COMMIT
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_COMMIT+x} ]; then \
TAUTULLI_COMMIT=$(curl -s https://api.github.com/repos/Tautulli/Tautulli/commits/nightly \
| jq -r '. | .sha' \
| cut -c1-8); \
fi && \
mkdir -p /app/tautulli && \
curl -o \
/tmp/tautulli.tar.gz -L \
"https://github.com/Tautulli/Tautulli/archive/${TAUTULLI_COMMIT}.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_COMMIT}" > /app/tautulli/version.txt && \
echo "nightly" > /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