diff --git a/br/docker/Dockerfile b/br/docker/Dockerfile index 38e67e34b805e..ea8e500c5bd09 100644 --- a/br/docker/Dockerfile +++ b/br/docker/Dockerfile @@ -1,5 +1,6 @@ # For loading data to TiDB -FROM golang:1.18-buster as go-ycsb-builder + +FROM golang:1.18.9-alpine as go-ycsb-builder WORKDIR /go/src/github.com/pingcap/ RUN git clone https://github.com/pingcap/go-ycsb.git --depth=1 && \ cd go-ycsb && \ @@ -8,15 +9,7 @@ RUN git clone https://github.com/pingcap/go-ycsb.git --depth=1 && \ # For operating minio S3 compatible storage FROM minio/mc as mc-builder -FROM golang:1.18-buster - -RUN apt-get update && apt-get install -y --no-install-recommends \ - git \ - curl \ - vim \ - less \ - default-mysql-client \ - && rm -rf /var/lib/apt/lists/* +FROM golang:1.18.9-alpine WORKDIR /go/src/github.com/pingcap/br COPY . .