Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

clients/nethermind: upgrade to .NET 8 #955

Merged
merged 1 commit into from
Dec 20, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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