From e54cff962fa5e72613d6423dde593f66d8de8fc2 Mon Sep 17 00:00:00 2001 From: RandomNinjaAtk Date: Wed, 7 Dec 2022 08:32:21 -0500 Subject: [PATCH] Add dotnet to fix recyclarr --- amd64.dockerfile | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/amd64.dockerfile b/amd64.dockerfile index 7916f59..b8c607a 100644 --- a/amd64.dockerfile +++ b/amd64.dockerfile @@ -1,4 +1,3 @@ -FROM mcr.microsoft.com/dotnet/runtime:7.0-alpine FROM linuxserver/sonarr:develop LABEL maintainer="RandomNinjaAtk" @@ -46,6 +45,18 @@ RUN \ unzip -o /recyclarr/recyclarr.zip -d /recyclarr &>/dev/null && \ chmod 777 /recyclarr/recyclarr +# .NET Runtime version +ENV DOTNET_VERSION=7.0.0 + +# Install .NET Runtime +RUN wget -O dotnet.tar.gz https://dotnetcli.azureedge.net/dotnet/Runtime/$DOTNET_VERSION/dotnet-runtime-$DOTNET_VERSION-linux-musl-x64.tar.gz \ + && dotnet_sha512='f37774eee98f38d9849c79d05c58b0d9e733d480b31a0615a1039613662579efef392d0129b2582281861c0647bacdb3acd78213bd33869b698e529b8e78ccee' \ + && echo "$dotnet_sha512 dotnet.tar.gz" | sha512sum -c - \ + && mkdir -p /usr/share/dotnet \ + && tar -oxzf dotnet.tar.gz -C /usr/share/dotnet \ + && rm dotnet.tar.gz \ + && ln -s /usr/share/dotnet/dotnet /usr/bin/dotnet + WORKDIR /config # copy local files