Skip to content

Instantly share code, notes, and snippets.

@philwo
Created May 19, 2020 04:43
Show Gist options
  • Save philwo/f2b01692cb4b46af79a8372082af1416 to your computer and use it in GitHub Desktop.
Save philwo/f2b01692cb4b46af79a8372082af1416 to your computer and use it in GitHub Desktop.
Bootstrapping Bazel inside Docker (works on arm64)
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