From 8a051cd3a1e1eaf787c0e448badc2c50e99c4a20 Mon Sep 17 00:00:00 2001 From: Marcos Maceo Date: Fri, 4 Oct 2024 11:33:41 +0400 Subject: [PATCH] fix: update dockerfile --- nethermind/Dockerfile | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/nethermind/Dockerfile b/nethermind/Dockerfile index 2576646..6b7175b 100644 --- a/nethermind/Dockerfile +++ b/nethermind/Dockerfile @@ -25,9 +25,10 @@ ENV COMMIT=7320938e5fe74ad6ac1782ce723ddb7bb7d3d78a RUN git clone $REPO --branch release/$VERSION --single-branch . && \ git switch -c branch-$VERSION RUN bash -c '[ "$(git rev-parse HEAD)" = "$COMMIT" ]' - -RUN arch=$([ "$TARGETARCH" = "amd64" ] && echo "x64" || echo "$TARGETARCH") && \ - dotnet publish src/Nethermind/Nethermind.Runner -c $BUILD_CONFIG -a $arch -o /publish --sc false +RUN TARGETARCH=${TARGETARCH#linux/} && \ + arch=$([ "$TARGETARCH" = "amd64" ] && echo "x64" || echo "$TARGETARCH") && \ + echo "Using architecture: $arch" && \ + dotnet publish src/Nethermind/Nethermind.Runner -c $BUILD_CONFIG -a $arch -o /publish --sc false FROM mcr.microsoft.com/dotnet/aspnet:8.0-noble