laconicd-deprecated/networks/local/ethermintnode/Dockerfile
Daniel Burckhardt 87f70c3b4e
deps: bump go to v1.19 (#1416)
* deps: bump go to v1.19

* deps: add dragonberry patch repalce in go.mod

* deps: add ival bump to v0.19.4

* deps: remove unrelated version bumps to adress in differnet PR

* go mod tidy

* add changelog

* fix typo in changelog
2022-10-31 16:46:48 +00:00

31 lines
773 B
Docker

FROM golang:stretch as build-env
# Install minimum necessary dependencies
ENV PACKAGES curl make git libc-dev bash gcc
RUN apt-get update && apt-get upgrade -y && \
apt-get install -y $PACKAGES
# Set working directory for the build
WORKDIR /go/src/github.com/evmos/ethermint
# Add source files
COPY . .
# build Ethermint
RUN make build-linux
# Final image
FROM golang:1.19 as final
WORKDIR /
RUN apt-get update
# Copy over binaries from the build-env
COPY --from=build-env /go/src/github.com/evmos/ethermint/build/ethermintd /
COPY --from=build-env /go/src/github.com/evmos/ethermint/scripts/start-docker.sh /
EXPOSE 26656 26657 1317 8545 8546
# Run ethermintd by default, omit entrypoint to ease using container with ethermintd
ENTRYPOINT ["/bin/bash", "-c"]