2020-10-02 08:16:21 +00:00
|
|
|
FROM golang:1.15-alpine as builder
|
|
|
|
|
|
|
|
RUN apk add --no-cache make gcc musl-dev linux-headers git
|
2016-11-15 17:57:56 +00:00
|
|
|
|
2020-08-21 12:38:11 +00:00
|
|
|
WORKDIR /app
|
|
|
|
|
2020-04-11 07:22:23 +00:00
|
|
|
# next 2 lines helping utilize docker cache
|
2020-08-21 12:38:11 +00:00
|
|
|
COPY go.mod go.sum ./
|
|
|
|
RUN go mod download
|
2020-04-11 07:22:23 +00:00
|
|
|
|
2020-08-21 12:38:11 +00:00
|
|
|
ADD . .
|
2020-08-27 06:45:24 +00:00
|
|
|
RUN make all
|
2017-09-05 09:16:59 +00:00
|
|
|
|
2020-10-02 08:16:21 +00:00
|
|
|
FROM alpine:3
|
2016-11-15 17:57:56 +00:00
|
|
|
|
2020-10-02 08:16:21 +00:00
|
|
|
RUN apk add --no-cache ca-certificates
|
2020-08-01 07:39:04 +00:00
|
|
|
COPY --from=builder /app/build/bin/* /usr/local/bin/
|
2016-11-15 17:57:56 +00:00
|
|
|
|
2020-08-27 06:45:24 +00:00
|
|
|
EXPOSE 8545 8546 8547 30303 30303/udp 8080 9090 6060
|