File tree 1 file changed +3
-5
lines changed
1 file changed +3
-5
lines changed Original file line number Diff line number Diff line change 1
1
FROM gcr.io/gcp-runtimes/ubuntu_16_0_4:latest
2
2
3
3
# Install Bazel (https://docs.bazel.build/versions/master/install-ubuntu.html)
4
- RUN apt-get update -y && apt-get install openjdk-8-jdk -y
5
- RUN echo "deb [arch=amd64] http://storage.googleapis.com/bazel-apt stable jdk1.8" | tee /etc/apt/sources.list.d/bazel.list
6
- RUN curl https://bazel.build/bazel-release.pub.gpg | apt-key add -
7
- RUN apt-get update -y && apt-get install bazel -y
4
+ RUN apt-get update -y && apt-get install openjdk-8-jdk wget git unzip build-essential -y
5
+ RUN wget https://github.com/bazelbuild/bazel/releases/download/0.24.0/bazel-0.24.0-installer-linux-x86_64.sh -O /tmp/bazel-installer.sh
6
+ RUN chmod +x /tmp/bazel-installer.sh && /tmp/bazel-installer.sh
8
7
RUN bazel help info >/dev/null 2>&1
9
8
10
9
# Install Python 2.7.12
@@ -18,4 +17,3 @@ CMD cp -r /opt/rules_python_source /opt/rules_python && \
18
17
bazel build //rules_python:piptool.par //rules_python:whltool.par && \
19
18
cp bazel-bin/rules_python/piptool.par bazel-bin/rules_python/whltool.par /opt/rules_python_source/tools/ && \
20
19
chown --reference=/opt/rules_python_source/update_tools.sh /opt/rules_python_source/tools/piptool.par /opt/rules_python_source/tools/whltool.par
21
-
You can’t perform that action at this time.
0 commit comments