-
Notifications
You must be signed in to change notification settings - Fork 1
/
Dockerfile
24 lines (20 loc) · 957 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
# See README.md
FROM resin/rpi-raspbian:stretch
RUN apt-get update
# Needed for apt-key on the debian:stretch image.
RUN apt-get install -y gnupg
# Note: installs Oracle's JDK8, as the OpenJDK crashes in QEMU during the build.
# RUN apt-get update && apt-get install -y default-jdk
RUN echo "deb http://ppa.launchpad.net/webupd8team/java/ubuntu xenial main" | \
tee /etc/apt/sources.list.d/webupd8team-java.list && \
apt-key adv --keyserver keyserver.ubuntu.com --recv-keys EEA14886 && \
apt-get update && \
echo debconf shared/accepted-oracle-license-v1-1 select true | debconf-set-selections && \
apt-get install -y oracle-java8-installer oracle-java8-set-default
RUN apt-get install -y automake g++ libtool make curl git python unzip wget zip && \
apt-get autoremove && \
apt-get clean
RUN cd / && \
git clone https://github.com/ochafik/bazel.git -b build-from-scratch --depth=1 && \
cd bazel && \
VERBOSE=yes bash ./compile.sh