15 lines
392 B
Docker
15 lines
392 B
Docker
|
FROM golang:1.21.1 as builder
|
||
|
WORKDIR /app
|
||
|
COPY go.mod go.sum ./
|
||
|
RUN go mod download
|
||
|
COPY . ./
|
||
|
RUN go build -trimpath ./cmd/record-indexer
|
||
|
|
||
|
FROM alpine:latest as certs
|
||
|
RUN apk --update add ca-certificates
|
||
|
|
||
|
FROM debian:stable-slim
|
||
|
COPY --from=certs /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/ca-certificates.crt
|
||
|
COPY --from=builder /app/record-indexer .
|
||
|
ENTRYPOINT ["./record-indexer"]
|