stack-orchestrator/app/data/container-build/cerc-go-ethereum-foundry/Dockerfile
David Boreham e183e2a880 Build foundry container locally
Former-commit-id: f3f4033937
2023-01-22 22:19:23 -07:00

22 lines
628 B
Docker

# Use locally build foundry base image to work around there being
# no aarm64 image published.
FROM foundry-rs/foundry:local
RUN apk update ; apk add --no-cache --allow-untrusted ca-certificates curl bash git jq
RUN apk add --no-cache --upgrade grep
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
COPY --from=cerc/go-ethereum:local /usr/local/bin/geth /bin/geth
RUN chmod +x /bin/geth
EXPOSE 8545
EXPOSE 8546
ENTRYPOINT ["./start-private-network.sh"]