-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
18 lines (15 loc) · 779 Bytes
/
Copy pathDockerfile
File metadata and controls
18 lines (15 loc) · 779 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
# Install Bazel, https://bazel.build/versions/master/docs/install.html#ubuntu
FROM ubuntu:18.04
# RUN wget https://github.com/bazelbuild/bazel/releases/download/3.6.0/bazel-3.6.0-dist.zip
# RUN unzip bazel-3.6.0-dist.zip -d bazel-3.6.0-dist && \
# cd bazel-3.6.0-dist && \
# ./compile.sh
# # RUN
# # cp output/bazel /usr/local/bin && \
# # cd .. && rm -rf bazel-3.6.0-dist.zip && rm -rf bazel-3.6.0-dist
# CMD ["bash"]
RUN apt-get update && apt install -y curl gnupg
RUN curl -fsSL https://bazel.build/bazel-release.pub.gpg | gpg --dearmor > bazel.gpg
RUN mv bazel.gpg /etc/apt/trusted.gpg.d/
RUN echo "deb [arch=amd64] https://storage.googleapis.com/bazel-apt stable jdk1.8" | tee /etc/apt/sources.list.d/bazel.list
RUN apt-get update && apt install -y bazel