web3_onlyfans/services/indexer/Dockerfile
2025-01-23 14:33:28 +03:00

14 lines
No EOL
302 B
Docker

FROM golang:1.20 as builder
WORKDIR /app
COPY go.mod go.sum ./
RUN go mod download
COPY . .
RUN CGO_ENABLED=0 GOOS=linux go build -o /app/bin/indexer main.go
FROM alpine:3.17
WORKDIR /app
COPY --from=builder /app/bin/indexer /app/indexer
COPY config.yaml /app/config.yaml
ENTRYPOINT ["/app/indexer"]