erigon-pulse/Dockerfile

23 lines
710 B
Docker
Raw Normal View History

2020-10-08 04:34:28 +00:00
FROM golang:1.15-alpine3.12 as builder
RUN apk add --no-cache make gcc g++ linux-headers git
2020-08-21 12:38:11 +00:00
WORKDIR /app
# 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-10-04 03:40:01 +00:00
# https://github.com/valyala/gozstd/issues/20#issuecomment-557499034
RUN GOZSTD_VER=$(cat go.mod | fgrep github.com/valyala/gozstd | awk '{print $NF}'); cd ${GOPATH}/pkg/mod/github.com/valyala/gozstd@${GOZSTD_VER}; if [[ ! -f _rebuilt ]]; then chmod -R +w .; make -j1 clean; make -j1 libzstd.a; touch _rebuilt; fi;
2020-10-04 03:40:01 +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-08 04:34:28 +00:00
FROM alpine:3.12
RUN apk add --no-cache ca-certificates libgcc libstdc++
COPY --from=builder /app/build/bin/* /usr/local/bin/
EXPOSE 8545 8546 30303 30303/udp 8080 9090 6060