Dockerfile.arm 712 B

123456789101112131415161718192021222324
  1. ARG DOTNET_VERSION=3.0
  2. FROM microsoft/dotnet:${DOTNET_VERSION}-sdk-stretch-arm32v7 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 -maxcpucount:1 \
  9. && dotnet publish \
  10. -maxcpucount:1 \
  11. --configuration release \
  12. --output /jellyfin \
  13. Jellyfin.Server
  14. FROM microsoft/dotnet:${DOTNET_VERSION}-runtime-stretch-slim-arm32v7
  15. COPY --from=builder /jellyfin /jellyfin
  16. EXPOSE 8096
  17. RUN apt-get update \
  18. && apt-get install -y ffmpeg
  19. VOLUME /config /media
  20. ENTRYPOINT dotnet /jellyfin/jellyfin.dll -programdata /config