Created
May 19, 2020 04:43
-
-
Save philwo/f2b01692cb4b46af79a8372082af1416 to your computer and use it in GitHub Desktop.
Bootstrapping Bazel inside Docker (works on arm64)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM ubuntu:18.04 | |
RUN uname -a | |
RUN cat /etc/lsb-release | |
ENV DEBIAN_FRONTEND="noninteractive" | |
RUN apt-get update && \ | |
apt-get install -y \ | |
openjdk-11-jdk-headless \ | |
build-essential \ | |
python \ | |
python3 \ | |
curl \ | |
zip \ | |
unzip \ | |
git && \ | |
rm -rf /var/lib/apt/lists/* | |
WORKDIR /bazel | |
RUN curl -fSsL -O https://releases.bazel.build/3.1.0/release/bazel-3.1.0-dist.zip && \ | |
unzip bazel-3.1.0-dist.zip && \ | |
rm bazel-3.1.0-dist.zip | |
RUN bash compile.sh | |
RUN output/bazel info |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment