16 lines
271 B
Docker
16 lines
271 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 eth-blob-indexer .
|
|
|
|
FROM alpine
|
|
|
|
WORKDIR /app
|
|
COPY --from=builder /eth-blob-indexer/eth-blob-indexer .
|
|
|
|
ENTRYPOINT ["/app/eth-blob-indexer"]
|