Dockerfile.arm64v8 640 B

123456789101112131415161718
  1. ARG DOTNET_VERSION=3.0
  2. FROM microsoft/dotnet:${DOTNET_VERSION}-sdk as builder
  3. WORKDIR /repo
  4. COPY . .
  5. #TODO Remove or update the sed line when we update dotnet version.
  6. RUN export DOTNET_CLI_TELEMETRY_OPTOUT=1 \
  7. && find . -type f -exec sed -i 's/netcoreapp2.1/netcoreapp3.0/g' {} \; \
  8. && dotnet clean \
  9. && dotnet publish --configuration release --output /jellyfin Jellyfin.Server
  10. FROM microsoft/dotnet:${DOTNET_VERSION}-runtime-stretch-slim-arm64v8
  11. COPY --from=builder /jellyfin /jellyfin
  12. EXPOSE 8096
  13. RUN apt-get update \
  14. && apt-get install -y ffmpeg
  15. VOLUME /config /media
  16. ENTRYPOINT dotnet /jellyfin/jellyfin.dll -programdata /config