docker-jellyfin-livestream/Dockerfile
renovate-bot b9f2d046f8
Some checks failed
continuous-integration/drone/pr Build is failing
Update dependency jellyfin/jellyfin to v10.9.11
2024-09-07 23:07:45 +00:00

81 lines
2.8 KiB
Docker

FROM node:16.20.2-bullseye-slim@sha256:503446c15c6236291222f8192513c2eb56a02a8949cbadf4fe78cce19815c734 as web-builder
# renovate: datasource=github-tags depName=jellyfin/jellyfin-web versioning=semver
ENV JELLYFIN_WEB_VERSION v10.8.13
WORKDIR /jellyfin-web
RUN set -ex; \
apt-get update; \
apt-get install --no-install-recommends -y \
git \
ca-certificates \
; \
git clone --branch $JELLYFIN_WEB_VERSION https://github.com/jellyfin/jellyfin-web.git .; \
npm install; \
npm run build:production; \
mv dist /dist;
FROM mcr.microsoft.com/dotnet/sdk:6.0@sha256:9b06f9faaaa72fcc5c6e6021fabfa56dbc800ce5d720f91565d0881e921450f3 as builder
# renovate: datasource=github-tags depName=jellyfin/jellyfin versioning=semver
ENV JELLYFIN_VERSION v10.9.11
ENV DOTNET_CLI_TELEMETRY_OPTOUT=1
WORKDIR /repo
COPY jellyfin_livestream.patch /
# because of changes in docker and systemd we need to not build in parallel at the moment
# see https://success.docker.com/article/how-to-reserve-resource-temporarily-unavailable-errors-due-to-tasksmax-setting
RUN set -ex; \
git clone --branch $JELLYFIN_VERSION https://github.com/jellyfin/jellyfin.git .; \
git apply /jellyfin_livestream.patch; \
dotnet publish Jellyfin.Server --disable-parallel --configuration Release --output="/jellyfin" --self-contained --runtime linux-x64 -p:DebugSymbols=false -p:DebugType=none;
FROM debian:bullseye-slim@sha256:8481471cacd29779e7b6fe64a891f4b6771d8c3c7e57bb410542a3db10d1897a
SHELL [ "/bin/bash", "-exo", "pipefail", "-c" ]
COPY --from=builder /jellyfin /jellyfin
COPY --from=web-builder /dist /jellyfin/jellyfin-web
# Install dependencies:
RUN apt-get update; \
apt-get install --no-install-recommends -y \
ca-certificates \
gnupg \
curl \
apt-transport-https \
; \
curl -fsSL https://repo.jellyfin.org/jellyfin_team.gpg.key | apt-key add -; \
echo "deb [arch=amd64] https://repo.jellyfin.org/debian bullseye main" | tee /etc/apt/sources.list.d/jellyfin.list; \
apt-get update; \
apt-get install --no-install-recommends -y \
jellyfin-ffmpeg \
openssl \
locales \
; \
apt-get purge --autoremove -y \
gnupg \
wget \
apt-transport-https; \
rm -rf /var/lib/apt/lists/*; \
mkdir -p /cache /config /media; \
chmod 777 /cache /config /media; \
sed -i -e 's/# en_US.UTF-8 UTF-8/en_US.UTF-8 UTF-8/' /etc/locale.gen; \
locale-gen;
ENV DOTNET_SYSTEM_GLOBALIZATION_INVARIANT=1
ENV LC_ALL en_US.UTF-8
ENV LANG en_US.UTF-8
ENV LANGUAGE en_US:en
COPY start-transcode.sh /usr/local/bin/start-transcode
EXPOSE 8096
VOLUME /cache /config /media
ENTRYPOINT ["./jellyfin/jellyfin", \
"--datadir", "/config", \
"--cachedir", "/cache", \
"--ffmpeg", "/usr/lib/jellyfin-ffmpeg/ffmpeg"]