300af0df0e
* fix: issue #310 - add ip-addresses for localnet-setup generation - add localnet-setup folder to keep localnet-setup-artifacts - map localnet-setup-artifacts to containers - change start-docker.sh to pick up generated testnet artifacts * feat: get rid of explicit ip-address-assignments for containers * feat: get rid of docker-localnet, introduce localnet-build and localnet-show-logstream, fix localnet-unsafe-reset and localnet-clean, add comments * fix: add --no-cache on docker build, exclude build-directory
31 lines
600 B
Docker
31 lines
600 B
Docker
FROM golang:alpine AS build-env
|
|
|
|
# Set up dependencies
|
|
ENV PACKAGES git build-base
|
|
|
|
# Set working directory for the build
|
|
WORKDIR /go/src/github.com/tharsis/ethermint
|
|
|
|
# Install dependencies
|
|
RUN apk add --update $PACKAGES
|
|
RUN apk add linux-headers
|
|
|
|
# Add source files
|
|
COPY . .
|
|
|
|
# Make the binary
|
|
RUN make build
|
|
|
|
# Final image
|
|
FROM alpine
|
|
|
|
# Install ca-certificates
|
|
RUN apk add --update ca-certificates jq
|
|
WORKDIR /
|
|
|
|
# Copy over binaries from the build-env
|
|
COPY --from=build-env /go/src/github.com/tharsis/ethermint/build/ethermintd /usr/bin/ethermintd
|
|
|
|
# Run ethermintd by default
|
|
CMD ["ethermintd"]
|