Skip to content

Commit

Permalink
fix: update dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
stdevMac committed Oct 4, 2024
1 parent 531d0e0 commit 8a051cd
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions nethermind/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 8a051cd

Please sign in to comment.