aboutsummaryrefslogtreecommitdiff
path: root/Dockerfile.arm64
diff options
context:
space:
mode:
authorBond_009 <bond.009@outlook.com>2019-10-20 14:37:01 +0200
committerBond_009 <bond.009@outlook.com>2019-10-25 18:04:01 +0200
commitf1167ace7e510c459341ab60337edc5385bcdc92 (patch)
tree414836f9d547f19b151aabbfa5be18544f68af85 /Dockerfile.arm64
parent0add74240fbb3e2d65d3b56fd90612c63e8690cf (diff)
Use the correct dotnet runtime in Docker images
The self contained packages already contains the dotnet runtime No need to use the dotnet runtime base image. This should decrease the size of the image.
Diffstat (limited to 'Dockerfile.arm64')
-rw-r--r--Dockerfile.arm646
1 files changed, 4 insertions, 2 deletions
diff --git a/Dockerfile.arm64 b/Dockerfile.arm64
index 7dbdd1f06..9b343659f 100644
--- a/Dockerfile.arm64
+++ b/Dockerfile.arm64
@@ -24,7 +24,7 @@ RUN dotnet publish Jellyfin.Server --configuration Release --output="/jellyfin"
FROM multiarch/qemu-user-static:x86_64-aarch64 as qemu
-FROM mcr.microsoft.com/dotnet/core/runtime:${DOTNET_VERSION}-stretch-slim-arm64v8
+FROM debian:stretch-slim-arm64v8
COPY --from=qemu /usr/bin/qemu-aarch64-static /usr/bin
RUN apt-get update \
&& apt-get install --no-install-recommends --no-install-suggests -y ffmpeg \
@@ -34,9 +34,11 @@ RUN apt-get update \
COPY --from=builder /jellyfin /jellyfin
COPY --from=web-builder /dist /jellyfin/jellyfin-web
+ENV DOTNET_SYSTEM_GLOBALIZATION_INVARIANT=1
+
EXPOSE 8096
VOLUME /cache /config /media
-ENTRYPOINT dotnet /jellyfin/jellyfin.dll \
+ENTRYPOINT ./jellyfin/jellyfin \
--datadir /config \
--cachedir /cache \
--ffmpeg /usr/bin/ffmpeg