1#======================== 2# Bazel installation 3 4# Must be in sync with tools/bazel 5ENV BAZEL_VERSION 3.7.1 6 7# The correct bazel version is already preinstalled, no need to use //tools/bazel wrapper. 8ENV DISABLE_BAZEL_WRAPPER 1 9 10RUN apt-get update && apt-get install -y wget && apt-get clean 11RUN wget "https://github.com/bazelbuild/bazel/releases/download/$BAZEL_VERSION/bazel-$BAZEL_VERSION-installer-linux-x86_64.sh" && ${'\\'} 12 bash ./bazel-$BAZEL_VERSION-installer-linux-x86_64.sh && ${'\\'} 13 rm bazel-$BAZEL_VERSION-installer-linux-x86_64.sh 14