Skip to content

Commit

Permalink
kafka-consumer: add DockerFile (pingcap#491)
Browse files Browse the repository at this point in the history
* kafka-consumer: add DockerFile
* move docker/Dockerfile to root

Signed-off-by: 5kbpers <tangminghua@pingcap.com>
  • Loading branch information
5kbpers authored Apr 24, 2020
1 parent 6e2c8e4 commit 996f729
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
File renamed without changes.
9 changes: 9 additions & 0 deletions kafka_consumer/Dockerfile
Original file line number Diff line number Diff line change
@@ -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" ]

0 comments on commit 996f729

Please sign in to comment.