Skip to content

Commit

Permalink
br: unified docker image align with tidb (#36016)
Browse files Browse the repository at this point in the history
close #36017
  • Loading branch information
3pointer authored Jul 21, 2022
1 parent 01d0256 commit 4723998
Showing 1 changed file with 11 additions and 10 deletions.
21 changes: 11 additions & 10 deletions br/docker/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,22 +1,23 @@
# For loading data to TiDB
FROM golang:1.18-buster as go-ycsb-builder
FROM golang:1.18.1-alpine as go-ycsb-builder
WORKDIR /go/src/github.com/pingcap/

RUN apk add --no-cache \
wget \
make \
git \
binutils-gold \
gcc \
musl-dev

RUN git clone https://github.com/pingcap/go-ycsb.git --depth=1 && \
cd go-ycsb && \
make

# 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.1-alpine

WORKDIR /go/src/github.com/pingcap/br
COPY . .
Expand Down

0 comments on commit 4723998

Please sign in to comment.