github.com/pingcap/br@v5.3.0-alpha.0.20220125034240-ec59c7b6ce30+incompatible/docker/Dockerfile (about) 1 # For loading data to TiDB 2 FROM golang:1.16.4-buster as go-ycsb-builder 3 WORKDIR /go/src/github.com/pingcap/ 4 RUN git clone https://github.com/pingcap/go-ycsb.git && \ 5 cd go-ycsb && \ 6 make 7 8 # For operating minio S3 compatible storage 9 FROM minio/mc as mc-builder 10 11 FROM golang:1.16.4-buster 12 13 RUN apt-get update && apt-get install -y --no-install-recommends \ 14 git \ 15 curl \ 16 vim \ 17 less \ 18 default-mysql-client \ 19 && rm -rf /var/lib/apt/lists/* 20 21 WORKDIR /go/src/github.com/pingcap/br 22 COPY . . 23 24 COPY --from=go-ycsb-builder /go/src/github.com/pingcap/go-ycsb/bin/go-ycsb /go/bin/go-ycsb 25 COPY --from=mc-builder /usr/bin/mc /usr/bin/mc 26 27 ENTRYPOINT ["/bin/bash"]