aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJP Dillingham <jpdillingham@gmail.com>2021-02-24 10:00:59 -0600
committerJP Dillingham <jpdillingham@gmail.com>2021-02-24 11:12:49 -0600
commitc300afdf531c09b9af5df66a64063832dec388cd (patch)
tree142818a18b35e5299850ad0c0a55d5f501785769
parented4497a1900eb82c14a000df68f9ce04738e6db3 (diff)
downloadslskd-c300afdf531c09b9af5df66a64063832dec388cd.tar.gz
try buster-slim
-rw-r--r--Dockerfile5
-rwxr-xr-xbin/publish6
2 files changed, 6 insertions, 5 deletions
diff --git a/Dockerfile b/Dockerfile
index 6153c5eb..d8759069 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -24,7 +24,8 @@ RUN bash ./bin/build --dotnet-only --version $VERSION
#
-FROM mcr.microsoft.com/dotnet/sdk:5.0.103-focal-amd64 AS publish
+# note: this needs to be pinned to an amd64 image
+FROM mcr.microsoft.com/dotnet/sdk:5.0-focal-amd64 AS publish
ARG TARGETPLATFORM
ARG VERSION=0.0.1.65534-local
@@ -39,7 +40,7 @@ RUN bash ./bin/publish --no-prebuild --platform $TARGETPLATFORM --version $VERSI
#
-FROM ubuntu AS slskd
+FROM mcr.microsoft.com/dotnet/runtime-deps:5.0-focal AS slskd
ARG TARGETPLATFORM
ARG VERSION=0.0.1.65534-local
diff --git a/bin/publish b/bin/publish
index 1315e2f1..2d40de3b 100755
--- a/bin/publish
+++ b/bin/publish
@@ -48,13 +48,13 @@ done
if [ ! -z "$platform" ]; then
case "$platform" in
linux/amd64)
- runtime="linux-musl-x64"
+ runtime="linux-x64"
;;
linux/arm64)
- runtime="linux-musl-arm64"
+ runtime="linux-arm64"
;;
linux/arm/v7)
- runtime="linux-musl-arm"
+ runtime="linux-arm"
;;
*)
echo "💥 error: platform must be one of: linux/amd64, linux/arm64, linux/arm/v7"