forked from cerc-io/laconicd-deprecated
6000ab2098
* chore: un-fork from cosmos * rm LoC
31 lines
604 B
Docker
31 lines
604 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 /root
|
|
|
|
# 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"]
|