Dockerfile 631 B

12345678910111213141516171819
  1. ARG DOTNET_VERSION=2
  2. FROM microsoft/dotnet:${DOTNET_VERSION}-sdk as builder
  3. WORKDIR /repo
  4. COPY . .
  5. ARG CONFIGURATION=RELEASE
  6. RUN dotnet clean \
  7. && dotnet build --configuration ${CONFIGURATION} $(pwd)/MediaBrowser.sln \
  8. && dotnet publish --configuration ${CONFIGURATION} $(pwd)/MediaBrowser.sln --output /jellyfin
  9. FROM microsoft/dotnet:${DOTNET_VERSION}-runtime
  10. COPY --from=builder /jellyfin /jellyfin
  11. RUN apt update \
  12. && apt install -y ffmpeg gosu
  13. EXPOSE 8096
  14. VOLUME /config /media
  15. ENV PUID=1000 PGID=1000
  16. ENTRYPOINT chown $PUID:$PGID /config /media \
  17. && gosu $PUID:$PGID dotnet /jellyfin/EmbyServer.dll -programdata /config