9807d7c6de
The following vulnerabilities are fixed with an upgrade: - https://snyk.io/vuln/SNYK-ALPINE315-OPENSSL-2426331 - https://snyk.io/vuln/SNYK-ALPINE315-OPENSSL-2426331 Co-authored-by: Federico Kunze Küllmer <31522760+fedekunze@users.noreply.github.com>
31 lines
605 B
Docker
31 lines
605 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:3.15
|
|
|
|
# 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"]
|