The Free Software Media System - Server Backend & API
Do explicit dotnet publish in Dockerfiles (#1801)
Joshua M. Boniface75b7c9ac36ab
diff --git a/Dockerfile b/Dockerfileindex 483345e39d..69cb5e0dd5 100644--- a/Dockerfile+++ b/Dockerfile@@ -14,8 +14,7 @@ FROM mcr.microsoft.com/dotnet/core/sdk:${DOTNET_VERSION} as builderWORKDIR /repoCOPY . .ENV DOTNET_CLI_TELEMETRY_OPTOUT=1-RUN bash -c "source deployment/common.build.sh && \- build_jellyfin Jellyfin.Server Release linux-x64 /jellyfin"+RUN dotnet publish Jellyfin.Server --configuration Release --output="/jellyfin" --self-contained --runtime linux-x64 "-p:GenerateDocumentationFile=false;DebugSymbols=false;DebugType=none"FROM jellyfin/ffmpeg:${FFMPEG_VERSION} as ffmpegFROM mcr.microsoft.com/dotnet/core/runtime:${DOTNET_VERSION}diff --git a/Dockerfile.arm b/Dockerfile.armindex 8a91d71bed..742e050d59 100644--- a/Dockerfile.arm+++ b/Dockerfile.arm@@ -22,8 +22,7 @@ RUN find . -type f -exec sed -i 's/netcoreapp2.1/netcoreapp3.0/g' {} \;# Discard objs - may cause failures if existsRUN find . -type d -name obj | xargs -r rm -r# Build-RUN bash -c "source deployment/common.build.sh && \- build_jellyfin Jellyfin.Server Release linux-arm /jellyfin"+RUN dotnet publish Jellyfin.Server --configuration Release --output="/jellyfin" --self-contained --runtime linux-arm "-p:GenerateDocumentationFile=false;DebugSymbols=false;DebugType=none"FROM multiarch/qemu-user-static:x86_64-arm as qemudiff --git a/Dockerfile.arm64 b/Dockerfile.arm64index b24d5d5991..8c0baf9253 100644--- a/Dockerfile.arm64+++ b/Dockerfile.arm64@@ -22,8 +22,7 @@ RUN find . -type f -exec sed -i 's/netcoreapp2.1/netcoreapp3.0/g' {} \;# Discard objs - may cause failures if existsRUN find . -type d -name obj | xargs -r rm -r# Build-RUN bash -c "source deployment/common.build.sh && \- build_jellyfin Jellyfin.Server Release linux-arm64 /jellyfin"+RUN dotnet publish Jellyfin.Server --configuration Release --output="/jellyfin" --self-contained --runtime linux-arm64 "-p:GenerateDocumentationFile=false;DebugSymbols=false;DebugType=none"FROM multiarch/qemu-user-static:x86_64-aarch64 as qemu