Dockerfile.arm 637 B

123456789101112131415161718192021
  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 \
  10. --configuration release \
  11. --output /jellyfin \
  12. Jellyfin.Server
  13. FROM microsoft/dotnet:${DOTNET_VERSION}-runtime
  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