From c81c9644a9b30ab1670066d9a4126be24fd44bc2 Mon Sep 17 00:00:00 2001 From: ClaytonNorthey92 Date: Thu, 15 Jan 2026 12:04:31 -0500 Subject: [PATCH] fix optimism dockerfile build previously, we were installing cargo from the alpine package manager. this was installing a cargo that was too old. now, use a non-alpine linux image to get a newer cargo and build with that pin just release for good measure --- op-node/Dockerfile | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/op-node/Dockerfile b/op-node/Dockerfile index de3854216bc22..ea2dc0f64fc41 100644 --- a/op-node/Dockerfile +++ b/op-node/Dockerfile @@ -1,14 +1,17 @@ -FROM golang:1.24.2-alpine3.21@sha256:7772cb5322baa875edd74705556d08f0eeca7b9c4b5367754ce3f2f00041ccee AS builder +FROM golang:1.24.2@sha256:30baaea08c5d1e858329c50f29fe381e9b7d7bced11a0f5f1f69a1504cdfbf5e AS builder -RUN apk add --update git make cargo bash +ENV GOOS=linux + +RUN apt update +RUN apt install -y git make bash curl RUN curl https://sh.rustup.rs -sSf | sh -s -- -y ENV PATH="${PATH}:/root/.cargo/bin" -RUN echo "export PATH=$PATH" >> /etc/profile WORKDIR /git RUN git clone https://github.com/casey/just WORKDIR /git/just +RUN git checkout f028de5b258a0cc4696b9dea729cc7d4d5828baa RUN cargo install just ARG VERSION=v0.0.0 TARGETOS TARGETARCH @@ -41,4 +44,4 @@ COPY --from=builder /optimism/op-proposer/bin/op-proposer /bin/op-proposer COPY --from=builder /optimism/op-conductor/bin/op-conductor /bin/op-conductor -CMD ['op-node'] \ No newline at end of file +CMD ['op-node']