From c9ac737987c6e85f2f36ecb3acd4a74fe2b77d3f Mon Sep 17 00:00:00 2001 From: Sebastian <379651+czarly@users.noreply.github.com> Date: Fri, 14 Mar 2025 13:21:50 +0100 Subject: [PATCH] add the wheel --- op/Dockerfile.wheel | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/op/Dockerfile.wheel b/op/Dockerfile.wheel index 9703b8af..2b80d4de 100644 --- a/op/Dockerfile.wheel +++ b/op/Dockerfile.wheel @@ -1,14 +1,20 @@ # Use an official Golang image as the base -FROM golang:1.20-alpine +FROM golang:1.22 # Set the working directory WORKDIR /app # Install necessary dependencies -RUN apk add --no-cache git make gcc musl-dev +#RUN apk add --no-cache git make gcc musl-dev -# Clone the Optimism repository -RUN git clone --depth 1 --branch main https://github.com/ethereum-optimism/optimism.git +ARG OP_REPO=https://github.com/ethereum-optimism/optimism.git +ARG OP_VERSION=v1.10.3 +ARG OP_PATCH + +RUN curl -fsSL https://github.com/casey/just/releases/download/1.38.0/just-1.38.0-x86_64-unknown-linux-musl.tar.gz | tar -xzf - -C /usr/local/bin + +RUN git clone $OP_REPO --branch op-node/$OP_VERSION --single-branch . && \ +git switch -c branch-$OP_VERSION # Navigate to the op-wheel directory WORKDIR /app/optimism/op-wheel