forked from cerc-io/laconicd-deprecated
f7d6d063be
The following vulnerabilities are fixed with an upgrade: - https://snyk.io/vuln/SNYK-DEBIAN10-OPENSSL-1569403 - https://snyk.io/vuln/SNYK-DEBIAN10-OPENSSL-1569406 - https://snyk.io/vuln/SNYK-DEBIAN10-PYTHON27-1063178 - https://snyk.io/vuln/SNYK-DEBIAN10-PYTHON27-1063178 - https://snyk.io/vuln/SNYK-DEBIAN10-PYTHON27-1063178
31 lines
781 B
Docker
31 lines
781 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/tharsis/ethermint
|
|
|
|
# Add source files
|
|
COPY . .
|
|
|
|
# build Ethermint
|
|
RUN make build-linux
|
|
|
|
# Final image
|
|
FROM golang:1.16.7 as final
|
|
|
|
WORKDIR /
|
|
|
|
RUN apt-get update
|
|
|
|
# Copy over binaries from the build-env
|
|
COPY --from=build-env /go/src/github.com/tharsis/ethermint/build/ethermintd /
|
|
COPY --from=build-env /go/src/github.com/tharsis/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"] |