laconicd/networks/local/ethermintnode/Dockerfile
Snyk bot 25501469c3
[Snyk] Security upgrade golang from 1.16.7 to 1.16 (#670)
* fix: networks/local/ethermintnode/Dockerfile to reduce vulnerabilities

The following vulnerabilities are fixed with an upgrade:
- https://snyk.io/vuln/SNYK-DEBIAN11-GLIBC-1296898
- https://snyk.io/vuln/SNYK-DEBIAN11-PYTHON39-1290158
- https://snyk.io/vuln/SNYK-DEBIAN11-PYTHON39-1290158
- https://snyk.io/vuln/SNYK-DEBIAN11-PYTHON39-1290158
- https://snyk.io/vuln/SNYK-DEBIAN11-PYTHON39-1290158

* Update networks/local/ethermintnode/Dockerfile

Co-authored-by: Federico Kunze Küllmer <31522760+fedekunze@users.noreply.github.com>
2021-10-14 07:39:48 +00:00

31 lines
779 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.17 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"]