Skip to content

Commit

Permalink
Adjust dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
chunter-cb committed Nov 11, 2024
1 parent 59bab31 commit 3c581a1
Showing 1 changed file with 13 additions and 13 deletions.
26 changes: 13 additions & 13 deletions testnet/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -49,23 +49,23 @@ RUN git clone $REPO --branch $VERSION --single-branch . && \
RUN go run build/ci.go install -static ./cmd/geth


FROM ubuntu:22.04 AS op-reth
# FROM ubuntu:22.04 AS op-reth

WORKDIR /app
# WORKDIR /app

RUN apt-get update && apt-get -y upgrade && apt-get install -y git libclang-dev pkg-config curl build-essential
RUN curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y
# RUN apt-get update && apt-get -y upgrade && apt-get install -y git libclang-dev pkg-config curl build-essential
# RUN curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y

ENV PATH="/root/.cargo/bin:${PATH}"
# ENV PATH="/root/.cargo/bin:${PATH}"

ENV REPO=https://github.com/paradigmxyz/reth.git
ENV VERSION=v1.1.0
ENV COMMIT=1ba631ba9581973e7c6cadeea92cfe1802aceb4a
RUN git clone $REPO --branch $VERSION --single-branch . && \
git switch -c branch-$VERSION && \
bash -c '[ "$(git rev-parse HEAD)" = "$COMMIT" ]'
# ENV REPO=https://github.com/paradigmxyz/reth.git
# ENV VERSION=v1.1.0
# ENV COMMIT=1ba631ba9581973e7c6cadeea92cfe1802aceb4a
# RUN git clone $REPO --branch $VERSION --single-branch . && \
# git switch -c branch-$VERSION && \
# bash -c '[ "$(git rev-parse HEAD)" = "$COMMIT" ]'

RUN cargo build --bin op-reth --features jemalloc,asm-keccak,optimism --manifest-path crates/optimism/bin/Cargo.toml
# RUN cargo build --bin op-reth --features jemalloc,asm-keccak,optimism --manifest-path crates/optimism/bin/Cargo.toml


FROM ubuntu:22.04
Expand All @@ -76,7 +76,7 @@ WORKDIR /app

COPY --from=op-node /app/op-node/bin/op-node ./
COPY --from=op-geth /app/build/bin/geth ./
COPY --from=op-reth /app/target/debug/op-reth ./reth
# COPY --from=op-reth /app/target/debug/op-reth ./reth
COPY --from=op-enclave /app/bin/op-enclave ./
COPY --from=op-enclave /app/bin/op-batcher ./
COPY --from=op-enclave /app/bin/op-proposer ./
Expand Down

0 comments on commit 3c581a1

Please sign in to comment.