Dockerfile.arm 638 B

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