2023-03-28 15:52:34 +00:00
|
|
|
# Note: cerc/foundry is Debian based
|
2023-03-25 00:23:35 +00:00
|
|
|
FROM cerc/foundry:local
|
2022-08-11 22:17:55 +00:00
|
|
|
|
2023-03-28 15:52:34 +00:00
|
|
|
RUN apt-get update && export DEBIAN_FRONTEND=noninteractive \
|
|
|
|
&& apt-get -y install --no-install-recommends jq curl netcat
|
|
|
|
|
2022-08-11 22:17:55 +00:00
|
|
|
WORKDIR /root
|
|
|
|
|
|
|
|
ARG GENESIS_FILE_PATH=genesis.json
|
|
|
|
|
|
|
|
COPY stateful ./stateful
|
|
|
|
COPY start-private-network.sh .
|
|
|
|
COPY deploy-local-network.sh .
|
|
|
|
COPY $GENESIS_FILE_PATH ./genesis.json
|
|
|
|
# TODO: figure out if this works for aarm64
|
2022-08-23 22:02:38 +00:00
|
|
|
COPY --from=cerc/go-ethereum:local /usr/local/bin/geth /bin/geth
|
2022-08-11 22:17:55 +00:00
|
|
|
RUN chmod +x /bin/geth
|
|
|
|
|
|
|
|
EXPOSE 8545
|
|
|
|
EXPOSE 8546
|
|
|
|
ENTRYPOINT ["./start-private-network.sh"]
|