Skip to content

Commit 16765a3

Browse files
committed
Fix dockerfile
1 parent a3d699b commit 16765a3

1 file changed

Lines changed: 21 additions & 4 deletions

File tree

geth/Dockerfile

Lines changed: 21 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,25 @@ WORKDIR /app
1919

2020
COPY versions.env /tmp/versions.env
2121

22-
RUN . /tmp/versions.env && git clone $OP_GETH_REPO --branch $OP_GETH_TAG --single-branch . && git switch -c branch-$OP_GETH_TAG #&& bash -c '[ "$(git rev-parse HEAD)" = "$OP_GETH_COMMIT" ]'
22+
RUN . /tmp/versions.env && git clone $OP_GETH_REPO --branch $OP_GETH_TAG --single-branch . && \
23+
git switch -c branch-$OP_GETH_TAG && \
24+
bash -c '[ "$(git rev-parse HEAD)" = "$OP_GETH_COMMIT" ]'
2325

24-
#RUN . /tmp/versions.env && git clone $OP_GETH_REPO --branch $OP_GETH_TAG --single-branch .
25-
#RUN . /tmp/versions.env git switch -c branch-$OP_GETH_TAG
26-
#RUN . /tmp/versions.env bash -c '[ "$(git rev-parse HEAD)" = "$OP_GETH_COMMIT" ]'
26+
RUN go run build/ci.go install -static ./cmd/geth
27+
28+
FROM ubuntu:22.04
29+
30+
RUN apt-get update && \
31+
apt-get install -y jq curl supervisor && \
32+
rm -rf /var/lib/apt/lists
33+
RUN mkdir -p /var/log/supervisor
34+
35+
WORKDIR /app
36+
37+
COPY --from=op /app/op-node/bin/op-node ./
38+
COPY --from=geth /app/build/bin/geth ./
39+
COPY supervisord.conf /etc/supervisor/conf.d/supervisord.conf
40+
COPY geth/geth-entrypoint ./execution-entrypoint
41+
COPY op-node-entrypoint .
42+
43+
CMD ["/usr/bin/supervisord"]

0 commit comments

Comments
 (0)