File tree 1 file changed +6
-5
lines changed
1 file changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -12,7 +12,7 @@ RUN git clone $REPO --branch op-node/$VERSION --single-branch . && \
12
12
RUN cd op-node && \
13
13
make VERSION=$VERSION op-node
14
14
15
- FROM mcr.microsoft.com/dotnet/sdk:8.0-noble AS build
15
+ FROM --platform=$BUILDPLATFORM mcr.microsoft.com/dotnet/sdk:8.0-noble AS build
16
16
17
17
ARG BUILD_CONFIG=release
18
18
ARG TARGETARCH
@@ -25,12 +25,13 @@ ENV COMMIT=7320938e5fe74ad6ac1782ce723ddb7bb7d3d78a
25
25
RUN git clone $REPO --branch release/$VERSION --single-branch . && \
26
26
git switch -c branch-$VERSION
27
27
RUN bash -c '[ "$(git rev-parse HEAD)" = "$COMMIT" ]'
28
+ RUN TARGETARCH=${TARGETARCH#linux/} && \
29
+ arch=$([ "$TARGETARCH" = "amd64" ] && echo "x64" || echo "$TARGETARCH" ) && \
30
+ echo "Using architecture: $arch" && \
31
+ dotnet publish src/Nethermind/Nethermind.Runner -c $BUILD_CONFIG -a $arch -o /publish --sc false
28
32
29
- RUN arch=$([ "$TARGETARCH" = "amd64" ] && echo "x64" || echo "$TARGETARCH" ) && \
30
- dotnet publish src/Nethermind/Nethermind.Runner -c $BUILD_CONFIG -a $arch -o /publish --sc false
31
33
32
-
33
- FROM mcr.microsoft.com/dotnet/aspnet:8.0-noble
34
+ FROM --platform=$BUILDPLATFORM mcr.microsoft.com/dotnet/aspnet:8.0-noble
34
35
35
36
RUN apt-get update && \
36
37
apt-get install -y jq curl supervisor && \
You can’t perform that action at this time.
0 commit comments