forked from cerc-io/laconicd-deprecated
5a29e808d3
* deploy network and contract * update binary names * install deps * contract script * use POST req to sent tx * add github actions * fix lint * update makefile * go mod verify and tidy * define amount on gentx * gitignore * install solcjs * install tools, clean up, fix deployment * include make contract-tools * use node in actions env * fix binary path Co-authored-by: Federico Kunze <31522760+fedekunze@users.noreply.github.com> Co-authored-by: Federico Kunze <federico.kunze94@gmail.com>
32 lines
707 B
Docker
32 lines
707 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/Chainsafe/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
|
|
WORKDIR /root
|
|
|
|
# Copy over binaries from the build-env
|
|
COPY --from=build-env /go/src/github.com/Chainsafe/ethermint/build/ethermintd /usr/bin/ethermintd
|
|
COPY --from=build-env /go/src/github.com/Chainsafe/ethermint/build/ethermintcli /usr/bin/ethermintcli
|
|
|
|
# Run ethermintd by default
|
|
CMD ["ethermintd"]
|