Skip to content
Merged
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
9 changes: 8 additions & 1 deletion simulators/ethereum/rpc-compat/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,18 @@
FROM golang:1-alpine as builder
ARG GOPROXY
ENV GOPROXY=${GOPROXY}
ARG branch=main
ENV GIT_REF=${branch}

RUN apk add --update git ca-certificates gcc musl-dev linux-headers

# Clone the tests repo.
RUN git clone --depth 1 https://github.com/ethereum/execution-apis.git /execution-apis
# Allow the user to specify a branch or commit to checkout
RUN git init /execution-apis && \
cd /execution-apis && \
git remote add origin https://github.com/ethereum/execution-apis.git && \
git fetch --depth 1 origin $GIT_REF && \
git checkout FETCH_HEAD;

# To run local tests, copy the directory into the same as the simulator and
# uncomment the line below
Expand Down