github.com/pingcap/tiflow@v0.0.0-20240520035814-5bf52d54e205/deployments/ticdc/docker/dev.Dockerfile (about)

     1  FROM golang:1.21-alpine as builder
     2  RUN apk add --no-cache git make bash findutils
     3  WORKDIR /go/src/github.com/pingcap/tiflow
     4  COPY . .
     5  
     6  RUN --mount=type=cache,target=/root/.cache/go-build,target=/go/pkg/mod make build-cdc-with-failpoint
     7  
     8  FROM alpine:3.15
     9  RUN apk add --no-cache tzdata bash curl socat
    10  COPY --from=builder /go/src/github.com/pingcap/tiflow/bin/cdc /cdc
    11  EXPOSE 8300
    12  CMD [ "/cdc" ]
    13