2022-04-22 12:31:57 +00:00
|
|
|
FROM golang:1.18-alpine as builder
|
|
|
|
|
2022-06-09 21:32:46 +00:00
|
|
|
WORKDIR /go/src/github.com/vulcanize/ipld-eth-beacon-indexer
|
2022-06-15 15:49:30 +00:00
|
|
|
RUN apk --no-cache add ca-certificates make git g++ linux-headers libstdc++
|
2022-04-22 12:31:57 +00:00
|
|
|
|
|
|
|
ENV GO111MODULE=on
|
|
|
|
COPY go.mod .
|
|
|
|
COPY go.sum .
|
|
|
|
RUN go mod tidy; go mod download
|
|
|
|
COPY . .
|
|
|
|
|
2022-06-15 15:49:30 +00:00
|
|
|
RUN GCO_ENABLED=0 GOOS=linux go build -race -ldflags="-s -w" -o ipld-eth-beacon-indexer .
|
2022-06-09 21:32:46 +00:00
|
|
|
RUN chmod +x ipld-eth-beacon-indexer
|
2022-04-22 12:31:57 +00:00
|
|
|
|
2023-10-18 17:31:09 +00:00
|
|
|
FROM alpine:latest
|
|
|
|
RUN apk --no-cache add ca-certificates libstdc++ busybox-extras gettext libintl bash gawk sed grep bc coreutils
|
2022-04-22 12:31:57 +00:00
|
|
|
WORKDIR /root/
|
2022-06-09 21:32:46 +00:00
|
|
|
COPY --from=builder /go/src/github.com/vulcanize/ipld-eth-beacon-indexer/ipld-eth-beacon-indexer /root/ipld-eth-beacon-indexer
|
2022-04-22 12:31:57 +00:00
|
|
|
ADD entrypoint.sh .
|
2022-10-31 17:36:08 +00:00
|
|
|
ADD ipld-eth-beacon-config-docker.json .
|
2022-09-29 01:39:56 +00:00
|
|
|
ENTRYPOINT ["./entrypoint.sh"]
|