|
|
|
@ -24,6 +24,8 @@ ARG APT_KEY_DONT_WARN_ON_DANGEROUS_USAGE=DontWarn
|
|
|
|
|
ENV NVIDIA_DRIVER_CAPABILITIES="compute,video,utility"
|
|
|
|
|
|
|
|
|
|
COPY --from=qemu /usr/bin/qemu-arm-static /usr/bin
|
|
|
|
|
|
|
|
|
|
# curl: setup & healthcheck
|
|
|
|
|
RUN apt-get update \
|
|
|
|
|
&& apt-get install --no-install-recommends --no-install-suggests -y ca-certificates gnupg curl && \
|
|
|
|
|
curl -ks https://repo.jellyfin.org/debian/jellyfin_team.gpg.key | apt-key add - && \
|
|
|
|
@ -42,7 +44,7 @@ RUN apt-get update \
|
|
|
|
|
vainfo \
|
|
|
|
|
libva2 \
|
|
|
|
|
locales \
|
|
|
|
|
&& apt-get remove curl gnupg -y \
|
|
|
|
|
&& apt-get remove gnupg -y \
|
|
|
|
|
&& apt-get clean autoclean -y \
|
|
|
|
|
&& apt-get autoremove -y \
|
|
|
|
|
&& rm -rf /var/lib/apt/lists/* \
|
|
|
|
@ -66,6 +68,8 @@ RUN dotnet publish Jellyfin.Server --configuration Release --output="/jellyfin"
|
|
|
|
|
|
|
|
|
|
FROM app
|
|
|
|
|
|
|
|
|
|
ENV HEALTHCHECK_URL=http://localhost:8096/health
|
|
|
|
|
|
|
|
|
|
COPY --from=builder /jellyfin /jellyfin
|
|
|
|
|
COPY --from=web-builder /dist /jellyfin/jellyfin-web
|
|
|
|
|
|
|
|
|
@ -75,3 +79,6 @@ ENTRYPOINT ["./jellyfin/jellyfin", \
|
|
|
|
|
"--datadir", "/config", \
|
|
|
|
|
"--cachedir", "/cache", \
|
|
|
|
|
"--ffmpeg", "/usr/lib/jellyfin-ffmpeg/ffmpeg"]
|
|
|
|
|
|
|
|
|
|
HEALTHCHECK --interval=30s --timeout=30s --start-period=10s --retries=3 \
|
|
|
|
|
CMD curl -Lk "${HEALTHCHECK_URL}" || exit 1
|
|
|
|
|