aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoshua M. Boniface <joshua@boniface.me>2024-02-11 12:47:51 -0500
committerJoshua M. Boniface <joshua@boniface.me>2024-02-11 12:47:51 -0500
commit80a997253adc0049a2f3ef42c3d47e3d2a8a8357 (patch)
treeedc2479769c0b886af43d825de75c34326804819
parentAdd initial build script (diff)
downloadjellyfin-packaging-80a997253adc0049a2f3ef42c3d47e3d2a8a8357.tar.gz
jellyfin-packaging-80a997253adc0049a2f3ef42c3d47e3d2a8a8357.tar.bz2
jellyfin-packaging-80a997253adc0049a2f3ef42c3d47e3d2a8a8357.zip
Add combined docker builds and rework Deb builds
-rwxr-xr-xbuild.py161
-rw-r--r--docker/Dockerfile175
-rw-r--r--docker/Dockerfile.amd6473
-rw-r--r--docker/Dockerfile.arm6451
-rw-r--r--docker/Dockerfile.armhf51
-rw-r--r--docker/Dockerfile.jellyfin-server.amd6412
-rw-r--r--docker/Dockerfile.jellyfin-server.arm6412
-rw-r--r--docker/Dockerfile.jellyfin-server.armhf12
-rw-r--r--docker/Dockerfile.jellyfin-web.all11
9 files changed, 306 insertions, 252 deletions
diff --git a/build.py b/build.py
index 460bdfd..78e67cb 100755
--- a/build.py
+++ b/build.py
@@ -31,13 +31,16 @@ def build_package_deb(jvers, btype, barch, bvers):
osversion = bvers if bvers in configurations[btype]['releases'] else None
if osversion is None:
raise ValueError(f"{bvers} is not a valid {btype} version in {configurations[btype]['releases']}")
- dockerfiles = configurations[btype]['files'][barch] if barch in configurations[btype]['files'].keys() else None
- if dockerfiles is None:
- raise ValueError(f"{barch} is not a valid {btype} {bvers} architecture in {configurations[btype]['files'].keys()}")
+ PARCH = configurations[btype]['archmaps'][barch]['PARCH'] if barch in configurations[btype]['archmaps'].keys() else None
+ if PARCH is None:
+ raise ValueError(f"{barch} is not a valid {btype} {bvers} architecture in {configurations[btype]['archmaps'].keys()}")
except Exception as e:
print(f"Invalid/unsupported arguments: {e}")
exit(1)
+ # Set the dockerfile
+ dockerfile = configurations[btype]["dockerfile"]
+
# Set the cross-gcc version
crossgccvers = configurations[btype]['cross-gcc'][bvers]
@@ -63,47 +66,119 @@ def build_package_deb(jvers, btype, barch, bvers):
with open(changelog_dst, "w") as fh:
fh.write(changelog)
- # Build the dockerfile(s) and packages
- for dockerfile in dockerfiles:
- imagename = f"jellyfin-builder-{btype}-{barch}-{bvers}-{abs(hash(dockerfile))}"
- os.system(f"docker build --progress=plain --build-arg PTYPE={ostype} --build-arg PVERSION={osversion} --build-arg PARCH={barch} --build-arg GCC_VERSION={crossgccvers} --file {repo_root_dir}/{dockerfile} --tag {imagename} {repo_root_dir}")
- os.system(f"docker run --volume {repo_root_dir}:/jellyfin --volume {repo_root_dir}/out:/dist --name {imagename} {imagename}")
+ # Use a unique docker image name for consistency
+ imagename = f"{configurations[btype]['imagename']}-{jvers}_{barch}-{btype}-{bvers}"
- # Clean up the docker containers and images
- for dockerfile in dockerfiles:
- imagename = f"jellyfin-builder-{btype}-{barch}-{bvers}-{abs(hash(dockerfile))}"
- os.system(f"docker rm {imagename}")
- os.system(f"docker image rm {imagename}")
+ # Build the dockerfile and packages
+ os.system(f"docker build --progress=plain --build-arg PTYPE={ostype} --build-arg PVERSION={osversion} --build-arg PARCH={PARCH} --build-arg GCC_VERSION={crossgccvers} --file {repo_root_dir}/{dockerfile} --tag {imagename} {repo_root_dir}")
+ os.system(f"docker run --volume {repo_root_dir}:/jellyfin --volume {repo_root_dir}/out:/dist --name {imagename} {imagename}")
-def build_package(btype, barch, bvers):
- pass
-def build_docker(ostype, osversion, dockerfiles):
+def build_package(jvers, btype, barch, bvers):
pass
+
+def build_docker(jvers, btype, barch, bvers):
+ print("> Building Docker images...")
+ print()
+
+ # We build all architectures simultaneously to push a single tag, so no conditional checks
+ architectures = configurations['docker']['archmaps'].keys()
+
+ # Set the dockerfile
+ dockerfile = configurations[btype]["dockerfile"]
+
+ # Determine if this is a "latest"-type image (v in jvers) or not
+ if "v" in jvers:
+ is_latest = True
+ version_suffix = True
+ else:
+ is_latest = False
+ version_suffix = False
+
+ # Set today's date in a convenient format for use as an image suffix
+ date = datetime.now().strftime("%Y%m%d-%H%M%S")
+
+ images = list()
+ for _barch in architectures:
+ print(f">> Building Docker image for {_barch}...")
+ print()
+
+ # Get our ARCH variables from the archmaps
+ PARCH = configurations['docker']['archmaps'][_barch]['PARCH']
+ DARCH = configurations['docker']['archmaps'][_barch]['DARCH']
+ QARCH = configurations['docker']['archmaps'][_barch]['QARCH']
+ BARCH = configurations['docker']['archmaps'][_barch]['BARCH']
+
+ # Use a unique docker image name for consistency
+ if version_suffix:
+ imagename = f"{configurations['docker']['imagename']}:{jvers}-{_barch}.{date}"
+ else:
+ imagename = f"{configurations['docker']['imagename']}:{jvers}-{_barch}"
+
+ # Clean up any existing qemu static image
+ os.system(f"docker run --rm --privileged multiarch/qemu-user-static:register --reset")
+ print()
+
+ # Build the dockerfile
+ os.system(f"docker build --no-cache --progress=plain --build-arg PARCH={PARCH} --build-arg DARCH={DARCH} --build-arg QARCH={QARCH} --build-arg BARCH={BARCH} --file {repo_root_dir}/{dockerfile} --tag {imagename} {repo_root_dir}")
+
+ images.append(imagename)
+ print()
+
+ # Build the manifests
+ print(f">> Building Docker manifests...")
+
+ if version_suffix:
+ print(f">>> Building dated version manifest...")
+ os.system(f"docker manifest create --amend {configurations['docker']['imagename']}:{jvers}.{date} {' '.join(images)}")
+
+ print(f">>> Building version manifest...")
+ os.system(f"docker manifest create --amend {configurations['docker']['imagename']}:{jvers} {' '.join(images)}")
+ if is_latest:
+ print(f">>> Building latest manifest...")
+ os.system(f"docker manifest create --amend {configurations['docker']['imagename']}:latest {' '.join(images)}")
+
+
# Define a map of possible configurations
configurations = {
"debian": {
- "files": {
- "amd64": [ "debian/docker/Dockerfile" ],
- "arm64": [ "debian/docker/Dockerfile" ],
- "armhf": [ "debian/docker/Dockerfile" ],
+ "def": build_package_deb,
+ "dockerfile": "debian/docker/Dockerfile",
+ "imagename": "jellyfin-builder",
+ "archmaps": {
+ "amd64": {
+ "PARCH": "amd64",
+ },
+ "arm64": {
+ "PARCH": "arm64",
+ },
+ "armhf": {
+ "PARCH": "armhf",
+ },
},
"releases": [ "11", "12" ],
- "def": build_package_deb,
"cross-gcc": {
"11": "10",
"12": "12",
},
},
"ubuntu": {
- "files": {
- "amd64": [ "debian/docker/Dockerfile" ],
- "arm64": [ "debian/docker/Dockerfile" ],
- "armhf": [ "debian/docker/Dockerfile" ],
+ "def": build_package_deb,
+ "dockerfile": "debian/docker/Dockerfile",
+ "imagename": "jellyfin-builder",
+ "archmaps": {
+ "amd64": {
+ "PARCH": "amd64",
+ },
+ "arm64": {
+ "PARCH": "arm64",
+ },
+ "armhf": {
+ "PARCH": "armhf",
+ },
},
"releases": [ "20.04", "22.04" ],
- "def": build_package_deb,
"cross-gcc": {
"20.04": "10",
"22.04": "12",
@@ -130,24 +205,50 @@ configurations = {
},
"docker": {
"def": build_docker,
+ "dockerfile": "docker/Dockerfile",
+ "imagename": "jellyfin/jellyfin",
+ "archmaps": {
+ # This insanity is needed because no one can agree on how to name architectures :-(
+ "amd64": {
+ "PARCH": "amd64",
+ "DARCH": "x64",
+ "QARCH": "x86_64",
+ "BARCH": "amd64",
+ },
+ "arm64": {
+ "PARCH": "arm64",
+ "DARCH": "arm64",
+ "QARCH": "aarch64",
+ "BARCH": "arm64v8",
+ },
+ "armhf": {
+ "PARCH": "armhf",
+ "DARCH": "arm",
+ "QARCH": "arm",
+ "BARCH": "arm32v7",
+ },
+ }
},
}
def usage():
- print(f"{sys.argv[0]} JVERS BTYPE BARCH [BVERS]")
+ print(f"{sys.argv[0]} JVERS BTYPE [BARCH] [BVERS]")
print(f" JVERS: The Jellyfin version being built")
print(f" BTYPE: A valid build OS type")
- print(f" BARCH: A valid build OS CPU architecture")
+ print(f" BARCH: A valid build OS CPU architecture (packaged OS types only)")
print(f" BVERS: A valid build OS version (packaged OS types only)")
try:
jvers = sys.argv[1]
- barch = sys.argv[2]
- btype = sys.argv[3]
+ btype = sys.argv[2]
except IndexError:
usage()
exit(1)
try:
+ barch = sys.argv[3]
+except IndexError:
+ barch = None
+try:
bvers = sys.argv[4]
except IndexError:
bvers = None
diff --git a/docker/Dockerfile b/docker/Dockerfile
new file mode 100644
index 0000000..f050fde
--- /dev/null
+++ b/docker/Dockerfile
@@ -0,0 +1,175 @@
+# Docker build arguments
+ARG DOTNET_VERSION=8.0
+ARG NODEJS_VERSION=20
+
+# Combined image version (Debian)
+ARG OS_VERSION=bookworm
+
+# Jellyfin FFMPEG package
+ARG FFMPEG_PACKAGE=jellyfin-ffmpeg6
+
+# https://github.com/intel/compute-runtime/releases
+ARG GMMLIB_VERSION=22.3.0
+ARG IGC_VERSION=1.0.14828.8
+ARG NEO_VERSION=23.30.26918.9
+ARG LEVEL_ZERO_VERSION=1.3.26918.9
+
+# Debian architecture (amd64, arm64, armhf), set by build script
+ARG PARCH
+# Dotnet architeture (x64, arm64, arm), set by build script
+ARG DARCH
+# QEMU architecture (x86_64, aarch64, arm), set by build script
+ARG QARCH
+# Base Image archiecture (amd64, arm64v8, arm32v7), set by build script
+ARG BARCH
+
+#
+# Build the web artifacts
+#
+FROM node:${NODEJS_VERSION}-alpine as web
+
+ARG SOURCE_DIR=/src
+ARG ARTIFACT_DIR=/web
+
+RUN apk add \
+ autoconf \
+ g++ \
+ make \
+ libpng-dev \
+ gifsicle \
+ alpine-sdk \
+ automake \
+ libtool \
+ make \
+ gcc \
+ musl-dev \
+ nasm \
+ python3
+
+WORKDIR ${SOURCE_DIR}
+COPY jellyfin-web .
+
+RUN npm ci --no-audit --unsafe-perm \
+ && npm run build:production \
+ && mv dist ${ARTIFACT_DIR}
+
+#
+# Build the server artifacts
+#
+FROM mcr.microsoft.com/dotnet/sdk:${DOTNET_VERSION}-${OS_VERSION}-slim as server
+
+ARG DARCH
+
+ARG SOURCE_DIR=/src
+ARG ARTIFACT_DIR=/server
+
+WORKDIR ${SOURCE_DIR}
+COPY jellyfin-server .
+ENV DOTNET_CLI_TELEMETRY_OPTOUT=1
+
+RUN dotnet publish Jellyfin.Server --configuration Release \
+ --output="${ARTIFACT_DIR}" --self-contained \
+ --runtime linux-${DARCH} -p:DebugSymbols=false -p:DebugType=none
+
+#
+# Build the final combined image
+#
+FROM multiarch/qemu-user-static:x86_64-${QARCH} as qemu
+FROM ${BARCH}/debian:${OS_VERSION}-slim as combined
+
+ARG OS_VERSION
+ARG FFMPEG_PACKAGE
+
+ARG GMMLIB_VERSION
+ARG IGC_VERSION
+ARG NEO_VERSION
+ARG LEVEL_ZERO_VERSION
+
+ARG PARCH
+ARG DARCH
+ARG QARCH
+
+# Copy the QEMU runtime
+COPY --from=qemu /usr/bin/* /usr/bin
+
+# Set the health URL
+ENV HEALTHCHECK_URL=http://localhost:8096/health
+
+# Default environment variables for the Jellyfin invocation
+ENV DOTNET_SYSTEM_GLOBALIZATION_INVARIANT="1" \
+ DEBIAN_FRONTEND="noninteractive" \
+ LC_ALL="en_US.UTF-8" \
+ LANG="en_US.UTF-8" \
+ LANGUAGE="en_US:en" \
+ JELLYFIN_DATA_DIR="/config" \
+ JELLYFIN_CACHE_DIR="/cache" \
+ JELLYFIN_CONFIG_DIR="/config/config" \
+ JELLYFIN_LOG_DIR="/config/log" \
+ JELLYFIN_WEB_DIR="/jellyfin/jellyfin-web" \
+ JELLYFIN_FFMPEG="/usr/lib/jellyfin-ffmpeg/ffmpeg"
+
+# https://github.com/dlemstra/Magick.NET/issues/707#issuecomment-785351620
+ENV MALLOC_TRIM_THRESHOLD_=131072
+
+# https://github.com/NVIDIA/nvidia-docker/wiki/Installation-(Native-GPU-Support)
+ENV NVIDIA_VISIBLE_DEVICES="all"
+ENV NVIDIA_DRIVER_CAPABILITIES="compute,video,utility"
+
+# Install dependencies:
+# curl: healthcheck
+RUN apt-get update \
+ && apt-get install --no-install-recommends --no-install-suggests --yes \
+ ca-certificates \
+ gnupg \
+ curl \
+ wget \
+ apt-transport-https \
+ && curl -fsSL https://repo.jellyfin.org/jellyfin_team.gpg.key \
+ | gpg --dearmor -o /etc/apt/trusted.gpg.d/debian-jellyfin.gpg \
+ && echo "deb [arch=${PARCH}] https://repo.jellyfin.org/debian ${OS_VERSION} main" > /etc/apt/sources.list.d/jellyfin.list \
+ && apt-get update \
+ && apt-get install --no-install-recommends --no-install-suggests --yes \
+ ${FFMPEG_PACKAGE} \
+ openssl \
+ locales \
+ libfontconfig1 \
+ libfreetype6 \
+ && sed -i -e 's/# en_US.UTF-8 UTF-8/en_US.UTF-8 UTF-8/' /etc/locale.gen && locale-gen \
+ && apt-get remove gnupg apt-transport-https --yes \
+ && apt-get clean autoclean --yes \
+ && apt-get autoremove --yes \
+ && rm -rf /var/cache/apt/archives* /var/lib/apt/lists/*
+
+# Intel VAAPI Tone mapping dependencies:
+# Prefer NEO to Beignet since the latter one doesn't support Comet Lake or newer for now.
+# Do not use the intel-opencl-icd package from repo since they will not build with RELEASE_WITH_REGKEYS enabled.
+# https://github.com/intel/compute-runtime/releases
+RUN if [[ ${PARCH} == "amd64" ]]; then \
+ mkdir intel-compute-runtime \
+ && pushd intel-compute-runtime \
+ && wget https://github.com/intel/compute-runtime/releases/download/${NEO_VERSION}/libigdgmm12_${GMMLIB_VERSION}_amd64.deb \
+ && wget https://github.com/intel/intel-graphics-compiler/releases/download/igc-${IGC_VERSION}/intel-igc-core_${IGC_VERSION}_amd64.deb \
+ && wget https://github.com/intel/intel-graphics-compiler/releases/download/igc-${IGC_VERSION}/intel-igc-opencl_${IGC_VERSION}_amd64.deb \
+ && wget https://github.com/intel/compute-runtime/releases/download/${NEO_VERSION}/intel-opencl-icd_${NEO_VERSION}_amd64.deb \
+ && wget https://github.com/intel/compute-runtime/releases/download/${NEO_VERSION}/intel-level-zero-gpu_${LEVEL_ZERO_VERSION}_amd64.deb \
+ && dpkg -i *.deb \
+ && popd \
+ && rm -rf intel-compute-runtime \
+ ; fi \
+ && apt-get remove wget --yes \
+ && apt-get clean autoclean --yes \
+ && apt-get autoremove --yes \
+ && rm -rf /var/cache/apt/archives* /var/lib/apt/lists/*
+
+RUN mkdir -p ${JELLYFIN_DATA_DIR} ${JELLYFIN_CACHE_DIR} \
+ && chmod 777 ${JELLYFIN_DATA_DIR} ${JELLYFIN_CACHE_DIR}
+
+COPY --from=server /server /jellyfin
+COPY --from=web /web /jellyfin/jellyfin-web
+
+EXPOSE 8096
+VOLUME ${JELLYFIN_DATA_DIR} ${JELLYFIN_CACHE_DIR}
+ENTRYPOINT [ "/jellyfin/jellyfin" ]
+
+HEALTHCHECK --interval=30s --timeout=30s --start-period=10s --retries=3 \
+ CMD curl -Lk -fsS "${HEALTHCHECK_URL}" || exit 1
diff --git a/docker/Dockerfile.amd64 b/docker/Dockerfile.amd64
deleted file mode 100644
index 8ee4ef8..0000000
--- a/docker/Dockerfile.amd64
+++ /dev/null
@@ -1,73 +0,0 @@
-# By default build for stable; unstable must set this explicitly
-ARG TARGET_RELEASE=stable
-
-FROM jellyfin/jellyfin-server:${TARGET_RELEASE}-amd64 as server
-FROM jellyfin/jellyfin-web:${TARGET_RELEASE} as web
-FROM debian:bullseye-slim
-
-ENV HEALTHCHECK_URL=http://localhost:8096/health
-
-# Default environment variables for the Jellyfin invocation
-ENV DOTNET_SYSTEM_GLOBALIZATION_INVARIANT="1" \
- LC_ALL="en_US.UTF-8" \
- LANG="en_US.UTF-8" \
- LANGUAGE="en_US:en" \
- JELLYFIN_DATA_DIR="/config" \
- JELLYFIN_CACHE_DIR="/cache" \
- JELLYFIN_CONFIG_DIR="/config/config" \
- JELLYFIN_LOG_DIR="/config/log" \
- JELLYFIN_WEB_DIR="/jellyfin/jellyfin-web" \
- JELLYFIN_FFMPEG="/usr/lib/jellyfin-ffmpeg/ffmpeg"
-
-# https://github.com/dlemstra/Magick.NET/issues/707#issuecomment-785351620
-ENV MALLOC_TRIM_THRESHOLD_=131072
-
-# https://github.com/NVIDIA/nvidia-docker/wiki/Installation-(Native-GPU-Support)
-ENV NVIDIA_VISIBLE_DEVICES="all"
-ENV NVIDIA_DRIVER_CAPABILITIES="compute,video,utility"
-
-# https://github.com/intel/compute-runtime/releases
-ARG GMMLIB_VERSION=22.3.0
-ARG IGC_VERSION=1.0.14828.8
-ARG NEO_VERSION=23.30.26918.9
-ARG LEVEL_ZERO_VERSION=1.3.26918.9
-
-# Install dependencies:
-# curl: healthcheck
-RUN apt-get update \
- && apt-get install --no-install-recommends --no-install-suggests -y ca-certificates gnupg curl wget apt-transport-https \
- && curl -fsSL https://repo.jellyfin.org/jellyfin_team.gpg.key | gpg --dearmor -o /etc/apt/trusted.gpg.d/debian-jellyfin.gpg \
- && echo 'deb [arch=amd64] https://repo.jellyfin.org/debian bullseye main' > /etc/apt/sources.list.d/jellyfin.list \
- && cat /etc/apt/sources.list.d/jellyfin.list \
- && apt-get update \
- && apt-get install --no-install-recommends --no-install-suggests -y jellyfin-ffmpeg5 openssl locales libfontconfig1 libfreetype6 \
-# Intel VAAPI Tone mapping dependencies:
-# Prefer NEO to Beignet since the latter one doesn't support Comet Lake or newer for now.
-# Do not use the intel-opencl-icd package from repo since they will not build with RELEASE_WITH_REGKEYS enabled.
- && mkdir intel-compute-runtime \
- && cd intel-compute-runtime \
- && wget https://github.com/intel/compute-runtime/releases/download/${NEO_VERSION}/libigdgmm12_${GMMLIB_VERSION}_amd64.deb \
- && wget https://github.com/intel/intel-graphics-compiler/releases/download/igc-${IGC_VERSION}/intel-igc-core_${IGC_VERSION}_amd64.deb \
- && wget https://github.com/intel/intel-graphics-compiler/releases/download/igc-${IGC_VERSION}/intel-igc-opencl_${IGC_VERSION}_amd64.deb \
- && wget https://github.com/intel/compute-runtime/releases/download/${NEO_VERSION}/intel-opencl-icd_${NEO_VERSION}_amd64.deb \
- && wget https://github.com/intel/compute-runtime/releases/download/${NEO_VERSION}/intel-level-zero-gpu_${LEVEL_ZERO_VERSION}_amd64.deb \
- && dpkg -i *.deb \
- && cd .. \
- && rm -rf intel-compute-runtime \
- && apt-get remove gnupg wget apt-transport-https -y \
- && apt-get clean autoclean -y \
- && apt-get autoremove -y \
- && rm -rf /var/lib/apt/lists/* \
- && mkdir -p ${JELLYFIN_DATA_DIR} ${JELLYFIN_CACHE_DIR} \
- && chmod 777 ${JELLYFIN_DATA_DIR} ${JELLYFIN_CACHE_DIR} \
- && sed -i -e 's/# en_US.UTF-8 UTF-8/en_US.UTF-8 UTF-8/' /etc/locale.gen && locale-gen
-
-COPY --from=server /jellyfin /jellyfin
-COPY --from=web /jellyfin-web /jellyfin/jellyfin-web
-
-EXPOSE 8096
-VOLUME ${JELLYFIN_DATA_DIR} ${JELLYFIN_CACHE_DIR}
-ENTRYPOINT [ "/jellyfin/jellyfin" ]
-
-HEALTHCHECK --interval=30s --timeout=30s --start-period=10s --retries=3 \
- CMD curl -Lk -fsS "${HEALTHCHECK_URL}" || exit 1
diff --git a/docker/Dockerfile.arm64 b/docker/Dockerfile.arm64
deleted file mode 100644
index c297c35..0000000
--- a/docker/Dockerfile.arm64
+++ /dev/null
@@ -1,51 +0,0 @@
-# By default build for stable; unstable must set this explicitly
-ARG TARGET_RELEASE=stable
-
-FROM multiarch/qemu-user-static:x86_64-aarch64 as qemu
-FROM jellyfin/jellyfin-server:${TARGET_RELEASE}-arm64 as server
-FROM jellyfin/jellyfin-web:${TARGET_RELEASE} as web
-FROM arm64v8/debian:bullseye-slim
-COPY --from=qemu /usr/bin/qemu-aarch64-static /usr/bin
-
-ENV HEALTHCHECK_URL=http://localhost:8096/health
-
-# Default environment variables for the Jellyfin invocation
-ENV DOTNET_SYSTEM_GLOBALIZATION_INVARIANT="1" \
- LC_ALL="en_US.UTF-8" \
- LANG="en_US.UTF-8" \
- LANGUAGE="en_US:en" \
- JELLYFIN_DATA_DIR="/config" \
- JELLYFIN_CACHE_DIR="/cache" \
- JELLYFIN_CONFIG_DIR="/config/config" \
- JELLYFIN_LOG_DIR="/config/log" \
- JELLYFIN_WEB_DIR="/jellyfin/jellyfin-web" \
- JELLYFIN_FFMPEG="/usr/lib/jellyfin-ffmpeg/ffmpeg"
-
-# https://github.com/dlemstra/Magick.NET/issues/707#issuecomment-785351620
-ENV MALLOC_TRIM_THRESHOLD_=131072
-
-# Install dependencies:
-# curl: healcheck
-RUN apt-get update \
- && apt-get install --no-install-recommends --no-install-suggests -y ca-certificates gnupg curl wget \
- && curl -fsSL https://repo.jellyfin.org/jellyfin_team.gpg.key | gpg --dearmor -o /etc/apt/trusted.gpg.d/debian-jellyfin.gpg \
- && echo 'deb [arch=arm64] https://repo.jellyfin.org/debian bullseye main' > /etc/apt/sources.list.d/jellyfin.list \
- && apt-get update \
- && apt-get install --no-install-recommends --no-install-suggests -y jellyfin-ffmpeg5 openssl locales libfontconfig1 libfreetype6 \
- && apt-get remove gnupg wget -y \
- && apt-get clean autoclean -y \
- && apt-get autoremove -y \
- && rm -rf /var/lib/apt/lists/* \
- && mkdir -p ${JELLYFIN_DATA_DIR} ${JELLYFIN_CACHE_DIR} \
- && chmod 777 ${JELLYFIN_DATA_DIR} ${JELLYFIN_CACHE_DIR} \
- && sed -i -e 's/# en_US.UTF-8 UTF-8/en_US.UTF-8 UTF-8/' /etc/locale.gen && locale-gen
-
-COPY --from=server /jellyfin /jellyfin
-COPY --from=web /jellyfin-web /jellyfin/jellyfin-web
-
-EXPOSE 8096
-VOLUME ${JELLYFIN_DATA_DIR} ${JELLYFIN_CACHE_DIR}
-ENTRYPOINT [ "/jellyfin/jellyfin" ]
-
-HEALTHCHECK --interval=30s --timeout=30s --start-period=10s --retries=3 \
- CMD curl -Lk -fsS "${HEALTHCHECK_URL}" || exit 1
diff --git a/docker/Dockerfile.armhf b/docker/Dockerfile.armhf
deleted file mode 100644
index 490cd4a..0000000
--- a/docker/Dockerfile.armhf
+++ /dev/null
@@ -1,51 +0,0 @@
-# By default build for stable; unstable must set this explicitly
-ARG TARGET_RELEASE=stable
-
-FROM multiarch/qemu-user-static:x86_64-arm as qemu
-FROM jellyfin/jellyfin-server:${TARGET_RELEASE}-armhf as server
-FROM jellyfin/jellyfin-web:${TARGET_RELEASE} as web
-FROM arm32v7/debian:bullseye-slim
-COPY --from=qemu /usr/bin/qemu-arm-static /usr/bin
-
-ENV HEALTHCHECK_URL=http://localhost:8096/health
-
-# Default environment variables for the Jellyfin invocation
-ENV DOTNET_SYSTEM_GLOBALIZATION_INVARIANT="1" \
- LC_ALL="en_US.UTF-8" \
- LANG="en_US.UTF-8" \
- LANGUAGE="en_US:en" \
- JELLYFIN_DATA_DIR="/config" \
- JELLYFIN_CACHE_DIR="/cache" \
- JELLYFIN_CONFIG_DIR="/config/config" \
- JELLYFIN_LOG_DIR="/config/log" \
- JELLYFIN_WEB_DIR="/jellyfin/jellyfin-web" \
- JELLYFIN_FFMPEG="/usr/lib/jellyfin-ffmpeg/ffmpeg"
-
-# https://github.com/dlemstra/Magick.NET/issues/707#issuecomment-785351620
-ENV MALLOC_TRIM_THRESHOLD_=131072
-
-# Install dependencies:
-# curl: healthcheck
-RUN apt-get update \
- && apt-get install --no-install-recommends --no-install-suggests -y ca-certificates gnupg curl wget \
- && curl -fsSL https://repo.jellyfin.org/jellyfin_team.gpg.key | gpg --dearmor -o /etc/apt/trusted.gpg.d/debian-jellyfin.gpg \
- && echo 'deb [arch=armhf] https://repo.jellyfin.org/debian bullseye main' > /etc/apt/sources.list.d/jellyfin.list \
- && apt-get update \
- && apt-get install --no-install-recommends --no-install-suggests -y jellyfin-ffmpeg5 openssl locales libfontconfig1 libfreetype6 \
- && apt-get remove gnupg wget -y \
- && apt-get clean autoclean -y \
- && apt-get autoremove -y \
- && rm -rf /var/lib/apt/lists/* \
- && mkdir -p ${JELLYFIN_DATA_DIR} ${JELLYFIN_CACHE_DIR} \
- && chmod 777 ${JELLYFIN_DATA_DIR} ${JELLYFIN_CACHE_DIR} \
- && sed -i -e 's/# en_US.UTF-8 UTF-8/en_US.UTF-8 UTF-8/' /etc/locale.gen && locale-gen
-
-COPY --from=server /jellyfin /jellyfin
-COPY --from=web /jellyfin-web /jellyfin/jellyfin-web
-
-EXPOSE 8096
-VOLUME ${JELLYFIN_DATA_DIR} ${JELLYFIN_CACHE_DIR}
-ENTRYPOINT [ "/jellyfin/jellyfin" ]
-
-HEALTHCHECK --interval=30s --timeout=30s --start-period=10s --retries=3 \
- CMD curl -Lk -fsS "${HEALTHCHECK_URL}" || exit 1
diff --git a/docker/Dockerfile.jellyfin-server.amd64 b/docker/Dockerfile.jellyfin-server.amd64
deleted file mode 100644
index ca16a08..0000000
--- a/docker/Dockerfile.jellyfin-server.amd64
+++ /dev/null
@@ -1,12 +0,0 @@
-ARG DOTNET_VERSION=8.0
-
-FROM mcr.microsoft.com/dotnet/sdk:${DOTNET_VERSION}-bookworm-slim
-
-ARG SOURCE_DIR=/src
-ARG ARTIFACT_DIR=/jellyfin
-
-WORKDIR ${SOURCE_DIR}
-COPY . .
-ENV DOTNET_CLI_TELEMETRY_OPTOUT=1
-
-RUN dotnet publish Jellyfin.Server --configuration Release --output="${ARTIFACT_DIR}" --self-contained --runtime linux-x64 -p:DebugSymbols=false -p:DebugType=none
diff --git a/docker/Dockerfile.jellyfin-server.arm64 b/docker/Dockerfile.jellyfin-server.arm64
deleted file mode 100644
index 6e0f7d1..0000000
--- a/docker/Dockerfile.jellyfin-server.arm64
+++ /dev/null
@@ -1,12 +0,0 @@
-ARG DOTNET_VERSION=8.0
-
-FROM mcr.microsoft.com/dotnet/sdk:${DOTNET_VERSION}-bookworm-slim
-
-ARG SOURCE_DIR=/src
-ARG ARTIFACT_DIR=/jellyfin
-
-WORKDIR ${SOURCE_DIR}
-COPY . .
-ENV DOTNET_CLI_TELEMETRY_OPTOUT=1
-
-RUN dotnet publish Jellyfin.Server --configuration Release --output="${ARTIFACT_DIR}" --self-contained --runtime linux-arm64 -p:DebugSymbols=false -p:DebugType=none
diff --git a/docker/Dockerfile.jellyfin-server.armhf b/docker/Dockerfile.jellyfin-server.armhf
deleted file mode 100644
index 44fb705..0000000
--- a/docker/Dockerfile.jellyfin-server.armhf
+++ /dev/null
@@ -1,12 +0,0 @@
-ARG DOTNET_VERSION=8.0
-
-FROM mcr.microsoft.com/dotnet/sdk:${DOTNET_VERSION}-bookworm-slim
-
-ARG SOURCE_DIR=/src
-ARG ARTIFACT_DIR=/jellyfin
-
-WORKDIR ${SOURCE_DIR}
-COPY . .
-ENV DOTNET_CLI_TELEMETRY_OPTOUT=1
-
-RUN dotnet publish Jellyfin.Server --configuration Release --output="${ARTIFACT_DIR}" --self-contained --runtime linux-arm -p:DebugSymbols=false -p:DebugType=none
diff --git a/docker/Dockerfile.jellyfin-web.all b/docker/Dockerfile.jellyfin-web.all
deleted file mode 100644
index 33cf501..0000000
--- a/docker/Dockerfile.jellyfin-web.all
+++ /dev/null
@@ -1,11 +0,0 @@
-FROM node:lts-alpine
-
-ARG SOURCE_DIR=/src
-ARG ARTIFACT_DIR=/jellyfin-web
-
-RUN apk add autoconf g++ make libpng-dev gifsicle alpine-sdk automake libtool make gcc musl-dev nasm python3
-
-WORKDIR ${SOURCE_DIR}
-COPY . .
-
-RUN npm ci --no-audit --unsafe-perm && mv dist ${ARTIFACT_DIR}
bgstack15