From ffe371cd5275f0b075ca7a00ec14cd330d0e3ee1 Mon Sep 17 00:00:00 2001 From: JP Dillingham Date: Fri, 1 Jan 2021 15:43:10 -0600 Subject: use alpine for runtime --- Dockerfile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'Dockerfile') diff --git a/Dockerfile b/Dockerfile index f8a2e77f..b910103e 100644 --- a/Dockerfile +++ b/Dockerfile @@ -8,11 +8,11 @@ FROM mcr.microsoft.com/dotnet/sdk:5.0 as build WORKDIR /slskd/ COPY src/slskd . COPY --from=web web/build wwwroot -RUN dotnet publish --configuration Release -p:PublishSingleFile=true -p:ReadyToRun=true -p:PublishTrimmed=true -p:IncludeNativeLibrariesForSelfExtract=true --self-contained --runtime linux-x64 +RUN dotnet publish --configuration Release -p:PublishSingleFile=true -p:ReadyToRun=true -p:PublishTrimmed=true -p:IncludeNativeLibrariesForSelfExtract=true --self-contained --runtime linux-musl-x64 FROM mcr.microsoft.com/dotnet/runtime-deps:5.0-alpine WORKDIR /slskd/ -COPY --from=build slskd/bin/Release/net5.0/linux-x64/publish . +COPY --from=build slskd/bin/Release/net5.0/linux-musl-x64/publish . RUN mkdir /var/slsk RUN mkdir /var/slsk/shared -- cgit v1.2.3