eth-blob-indexer/Dockerfile

16 lines
312 B
Docker

FROM golang:1.22-alpine as builder
WORKDIR /eth-blob-indexer
COPY go.mod go.sum ./
RUN go mod download
COPY . .
RUN go build -o beacon-blob-collector ./cmd/beacon-blob-collector
FROM alpine
WORKDIR /app
COPY --from=builder /eth-blob-indexer/beacon-blob-collector .
ENTRYPOINT ["/app/beacon-blob-collector"]