Skip to content

Commit

Permalink
Merge pull request #14 from NethermindEth/feat/add_nethermind
Browse files Browse the repository at this point in the history
fix: update dockerfile
  • Loading branch information
stdevMac authored Oct 4, 2024
2 parents 2863682 + 8a051cd commit b340a7f
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 b340a7f

Please sign in to comment.