github.com/pingcap/ticdc@v0.0.0-20220526033649-485a10ef2652/Dockerfile (about)

     1  FROM golang:1.14-alpine as builder
     2  RUN apk add --no-cache git make bash
     3  WORKDIR /go/src/github.com/pingcap/ticdc
     4  COPY . .
     5  ENV CDC_ENABLE_VENDOR=0
     6  RUN make
     7  
     8  FROM alpine:3.12
     9  RUN apk add --no-cache tzdata bash curl socat
    10  COPY --from=builder /go/src/github.com/pingcap/ticdc/bin/cdc /cdc
    11  EXPOSE 8300
    12  CMD [ "/cdc" ]