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