Skip to content

Commit

Permalink
clients/nethermind: upgrade to .NET 8 (ethereum#955)
Browse files Browse the repository at this point in the history
  • Loading branch information
flcl42 authored and Eikix committed Mar 1, 2024
1 parent bf96af9 commit f8c976b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions clients/nethermind/Dockerfile.git
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
### Build Nethermind From Git:

## Builder stage: Compiles nethermind from a git repository
FROM mcr.microsoft.com/dotnet/sdk:7.0 AS build
FROM mcr.microsoft.com/dotnet/sdk:8.0 AS build

ARG github=nethermindeth/nethermind
ARG tag=master
Expand All @@ -12,10 +12,10 @@ RUN echo "Cloning: $github - $tag" && \
dotnet build -c release

## Final stage: Sets up the environment for running nethermind
FROM mcr.microsoft.com/dotnet/aspnet:7.0
FROM mcr.microsoft.com/dotnet/aspnet:8.0

# Copy compiled binary from builder
COPY --from=build /nethermind/src/Nethermind/Nethermind.Runner/bin/release/net7.0 /nethermind
COPY --from=build /nethermind/src/Nethermind/artifacts/bin/Nethermind.Runner/release /nethermind
WORKDIR /nethermind

RUN apt-get update && apt-get install -y jq libsnappy-dev libc6-dev libc6 && \
Expand Down
6 changes: 3 additions & 3 deletions clients/nethermind/Dockerfile.local
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
### Requires a copy of nethermind/ -> hive/clients/nethermind/

## Builder stage: Compiles nethermind from a local directory
FROM mcr.microsoft.com/dotnet/sdk:7.0 AS build
FROM mcr.microsoft.com/dotnet/sdk:8.0 AS build

# Default local client path: clients/nethermind/<nethermind>
ARG local_path=nethermind
Expand All @@ -11,10 +11,10 @@ ADD $local_path /nethermind
RUN cd /nethermind/src/Nethermind/Nethermind.Runner && dotnet build -c release

## Final stage: Sets up the environment for running nethermind
FROM mcr.microsoft.com/dotnet/aspnet:7.0
FROM mcr.microsoft.com/dotnet/aspnet:8.0

# Copy compiled binary from builder
COPY --from=build /nethermind/src/Nethermind/Nethermind.Runner/bin/release/net7.0 /nethermind
COPY --from=build /nethermind/src/Nethermind/artifacts/bin/Nethermind.Runner/release /nethermind
WORKDIR /nethermind

RUN apt-get update && apt-get install -y jq libsnappy-dev libc6-dev libc6 && \
Expand Down

0 comments on commit f8c976b

Please sign in to comment.