github.com/pingcap/ticdc@v0.0.0-20220526033649-485a10ef2652/Dockerfile.development (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=1
     6  RUN go mod vendor
     7  RUN make failpoint-enable
     8  RUN make
     9  RUN make failpoint-disable
    10  
    11  FROM alpine:3.12
    12  RUN apk add --no-cache tzdata bash curl socat
    13  COPY --from=builder /go/src/github.com/pingcap/ticdc/bin/cdc /cdc
    14  EXPOSE 8300
    15  CMD [ "/cdc" ]