diff options
| author | JP Dillingham <jpdillingham@gmail.com> | 2021-01-01 15:43:10 -0600 |
|---|---|---|
| committer | JP Dillingham <jpdillingham@gmail.com> | 2021-01-01 15:43:10 -0600 |
| commit | ffe371cd5275f0b075ca7a00ec14cd330d0e3ee1 (patch) | |
| tree | 29546a9f2dc2fe7a531178c41161e553daf897fb | |
| parent | d9cb99774aa73dada8d68aa124ba8554d4a92d33 (diff) | |
| download | slskd-ffe371cd5275f0b075ca7a00ec14cd330d0e3ee1.tar.gz | |
use alpine for runtime
| -rw-r--r-- | Dockerfile | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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 |
