Skip to content

Commit 52f7545

Browse files
zhangxffffXiaofeng Zhang
andauthored
minor: fix kube/Dockerfile build failed (#1918)
Co-authored-by: Xiaofeng Zhang <xiaofeng.zhang@bytedance.com>
1 parent f64693d commit 52f7545

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

kube/Dockerfile

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,15 @@ RUN apt update \
2525
&& apt install -y openjdk-11-jdk \
2626
&& apt clean
2727

28+
RUN apt install -y gcc-10 g++-10 cpp-10 unzip
29+
ENV CC="gcc-10"
30+
ENV CXX="g++-10"
31+
32+
RUN PB_REL="https://github.com/protocolbuffers/protobuf/releases" \
33+
&& curl -LO $PB_REL/download/v30.2/protoc-30.2-linux-x86_64.zip \
34+
&& unzip protoc-30.2-linux-x86_64.zip -d /root/.local
35+
ENV PATH="$PATH:/root/.local/bin"
36+
2837
RUN curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y
2938
ENV PATH="/root/.cargo/bin:${PATH}"
3039
ENV RUSTFLAGS="-C debuginfo=line-tables-only -C incremental=false"

0 commit comments

Comments
 (0)