@@ -3,36 +3,32 @@ FROM debian
33WORKDIR /app
44
55# init system dependencies
6- RUN apt-get -y update && apt-get install -y sudo jq wget curl gnupg git make bc ca-certificates jsonnet build-essential && \
6+ RUN apt-get -y update && apt-get install -y sudo jq wget curl gnupg git make bc ca-certificates build-essential && \
77 sudo rm -rf /var/lib/apt/lists
88
9- # clone optimism repository
9+ ENV PATH="/root/.local/bin:/root/.local/share/mise/shims:/root/.local/share/mise/bin:$PATH"
10+ ENV MISE_DATA_DIR="/root/.local/share/mise"
11+ ENV MISE_DIR="/root/.mise"
1012ENV OP_REPO=https://github.com/ethereum-optimism/optimism.git
1113ENV OP_VERSION=${OP_VERSION:-v1.12.2}
14+
15+ # clone optimism repository
1216RUN mkdir -p ~/optimism && cd ~/optimism && \
1317 git clone $OP_REPO --depth 1 --branch $OP_VERSION --single-branch . && \
14- git switch -c $OP_VERSION
15-
16- # install dependencies
17- ENV PATH="/root/.local/bin:/root/.local/share/mise/shims:/root/.local/share/mise/bin:$PATH"
18- ENV MISE_DATA_DIR="/root/.local/share/mise"
19- ENV MISE_DIR="/root/.mise"
18+ git switch -c $OP_VERSION
2019
21- RUN curl https://mise.run | sh && \
22- cd ~/optimism && mise trust mise.toml && mise use -g foundry@1.0.0 && mise install
20+ # install op-deployer
21+ RUN cd ~/optimism && curl https://mise.run | sh && \
22+ mise trust mise.toml && mise use -g foundry@1.0.0 && mise install && \
23+ git submodule update --init --recursive --depth 1
2324
24- # install op-node
25- RUN cd ~/optimism && git submodule update --init --recursive --depth 1 && \
26- go mod download && go mod tidy && \
27- make -C op-node VERSION=$OP_VERSION op-node
25+ RUN cd ~/optimism/op-deployer && just build
2826
2927COPY *.sh /script/
3028RUN chmod +x /script/*.sh
3129
3230ENTRYPOINT ["/bin/bash" , "-c" , \
3331 "chmod +x /script/*.sh && \
34- source /script/1_init_environment .sh && \
32+ source /script/1_init .sh && \
3533 /script/2_faucet.sh && \
36- /script/3_generate_config.sh && \
37- /script/4_deploy_contract.sh && \
38- /script/5_export_genesis.sh" ]
34+ /script/3_deploy.sh" ]
0 commit comments