laconicd/Dockerfile
Simon Pfeifhofer 300af0df0e
build: fix docker setup (#337)
* 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
2021-08-04 09:30:13 +00:00

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"]