The Free Software Media System - Server Backend & API
Simplify Docker build - Remove unnecessary build command (implied in publish) - Remove unnecessary solution arg - Move arg to command
Andrew Rabert23ed559bb084
diff --git a/Dockerfile b/Dockerfileindex 9c352ef8f3..5147ffb9af 100644--- a/Dockerfile+++ b/Dockerfile@@ -3,11 +3,9 @@ ARG DOTNET_VERSION=2FROM microsoft/dotnet:${DOTNET_VERSION}-sdk as builderWORKDIR /repoCOPY . .-ARG CONFIGURATION=RELEASERUN export DOTNET_CLI_TELEMETRY_OPTOUT=1 \&& dotnet clean \- && dotnet build --configuration ${CONFIGURATION} $(pwd)/MediaBrowser.sln \- && dotnet publish --configuration ${CONFIGURATION} $(pwd)/MediaBrowser.sln --output /jellyfin+ && dotnet publish --configuration release --output /jellyfinFROM microsoft/dotnet:${DOTNET_VERSION}-runtimeCOPY --from=builder /jellyfin /jellyfin