github.com/pingcap/tiflow@v0.0.0-20240520035814-5bf52d54e205/deployments/ticdc/docker/kafka-consumer.Dockerfile (about) 1 FROM golang:1.21-alpine as builder 2 RUN apk add --no-cache make bash git 3 WORKDIR /go/src/github.com/pingcap/tiflow 4 COPY . . 5 6 RUN --mount=type=cache,target=/go/pkg/mod go mod download 7 RUN --mount=type=cache,target=/root/.cache/go-build make kafka_consumer 8 9 FROM alpine:3.15 10 11 RUN apk update && apk add tzdata 12 13 COPY --from=builder /go/src/github.com/pingcap/tiflow/bin/cdc_kafka_consumer /cdc_kafka_consumer 14 15 ENTRYPOINT ["tail", "-f", "/dev/null"]