github.com/ipni/storetheindex@v0.8.30/Dockerfile (about)

     1  FROM golang:1.22-bullseye as builder
     2  
     3  WORKDIR /storetheindex
     4  COPY go.* .
     5  RUN go mod download
     6  COPY . .
     7  
     8  RUN CGO_ENABLED=0 go build
     9  
    10  # Debug non-root image used as base in order to provide easier administration and debugging.
    11  FROM gcr.io/distroless/static-debian12:debug-nonroot
    12  COPY --from=builder /storetheindex/storetheindex /usr/local/bin/
    13  
    14  # Default port configuration:
    15  #  - 3000 Finder interface
    16  #  - 3001 Ingest interface
    17  #  - 3002 Admin interface
    18  #  - 3003 libp2p interface
    19  # Note: exposed ports below will have no effect if the default config is overridden.
    20  EXPOSE 3000-3003
    21  
    22  ENTRYPOINT ["/usr/local/bin/storetheindex"]
    23  CMD ["daemon"]