Dockerfile 752 B

1234567891011121314151617181920212223
  1. ARG DOTNET_VERSION=2
  2. FROM microsoft/dotnet:${DOTNET_VERSION}-sdk as builder
  3. WORKDIR /repo
  4. COPY . .
  5. RUN export DOTNET_CLI_TELEMETRY_OPTOUT=1 \
  6. && dotnet clean \
  7. && dotnet publish --configuration release --output /jellyfin
  8. FROM microsoft/dotnet:${DOTNET_VERSION}-runtime
  9. COPY --from=builder /jellyfin /jellyfin
  10. EXPOSE 8096
  11. VOLUME /config /media
  12. ARG FFMPEG_URL=https://www.johnvansickle.com/ffmpeg/old-releases/ffmpeg-4.0.3-64bit-static.tar.xz
  13. RUN apt update \
  14. && apt install -y xz-utils \
  15. && curl ${FFMPEG_URL} | tar Jxf - -C /usr/bin --wildcards --strip-components=1 ffmpeg*/ffmpeg ffmpeg*/ffprobe \
  16. && apt remove -y xz-utils \
  17. && apt install -y libfontconfig1 # needed for Skia
  18. ENTRYPOINT dotnet /jellyfin/jellyfin.dll -programdata /config