From 996f729dff9a4df490a9dbfac6de3d889c077559 Mon Sep 17 00:00:00 2001 From: 5kbpers <20279863+5kbpers@users.noreply.github.com> Date: Fri, 24 Apr 2020 20:53:39 +0800 Subject: [PATCH] kafka-consumer: add DockerFile (#491) * kafka-consumer: add DockerFile * move docker/Dockerfile to root Signed-off-by: 5kbpers --- docker/Dockerfile => Dockerfile | 0 kafka_consumer/Dockerfile | 9 +++++++++ 2 files changed, 9 insertions(+) rename docker/Dockerfile => Dockerfile (100%) create mode 100644 kafka_consumer/Dockerfile diff --git a/docker/Dockerfile b/Dockerfile similarity index 100% rename from docker/Dockerfile rename to Dockerfile diff --git a/kafka_consumer/Dockerfile b/kafka_consumer/Dockerfile new file mode 100644 index 00000000000..4eb646c42c7 --- /dev/null +++ b/kafka_consumer/Dockerfile @@ -0,0 +1,9 @@ +FROM golang:1.13 as builder +WORKDIR /go/src/github.com/pingcap/ticdc +COPY . . +RUN go mod download +RUN make kafka_consumer + +FROM alpine:3.11 +COPY --from=builder /go/src/github.com/pingcap/ticdc/bin/cdc_kafka_consumer /cdc_kafka_consumer +CMD [ "/cdc_kafka_consumer" ]