aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNarfinger <narfinger@noreply.github.com>2020-01-10 19:42:07 +0900
committerNarfinger <narfinger@noreply.github.com>2020-01-10 19:42:07 +0900
commitc3ff4e0b9f52827872d50b890ea4e4fbab22b604 (patch)
tree0ea48482f50b4128d6de32e51fbf5661f3c8573a
parent162c1ac7b7fde0e4929cf262b0f275e3eb15524c (diff)
fixes dockerfile building on recent linux installations
-rw-r--r--Dockerfile4
1 files changed, 3 insertions, 1 deletions
diff --git a/Dockerfile b/Dockerfile
index 53a425262..1cd864e0b 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -14,7 +14,9 @@ FROM mcr.microsoft.com/dotnet/core/sdk:${DOTNET_VERSION}-buster as builder
WORKDIR /repo
COPY . .
ENV DOTNET_CLI_TELEMETRY_OPTOUT=1
-RUN dotnet publish Jellyfin.Server --configuration Release --output="/jellyfin" --self-contained --runtime linux-x64 "-p:GenerateDocumentationFile=false;DebugSymbols=false;DebugType=none"
+# because of changes in docker and systemd we need to not build in parallel at the moment
+# see https://success.docker.com/article/how-to-reserve-resource-temporarily-unavailable-errors-due-to-tasksmax-setting
+RUN dotnet publish Jellyfin.Server --disable-parallel --configuration Release --output="/jellyfin" --self-contained --runtime linux-x64 "-p:GenerateDocumentationFile=false;DebugSymbols=false;DebugType=none"
FROM jellyfin/ffmpeg:${FFMPEG_VERSION} as ffmpeg
FROM debian:buster-slim