-
Notifications
You must be signed in to change notification settings - Fork 1
/
Dockerfile
18 lines (14 loc) · 992 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
FROM ubuntu:16.04 as toolchain
RUN apt-get update \
&& curl -L https://apt.llvm.org/llvm-snapshot.gpg.key | apt-key add - \
&& echo "deb http://apt.llvm.org/xenial/ llvm-toolchain-xenial-9 main" | tee /etc/apt/sources.list.d/llvm.list \
&& apt-get update \
&& apt-get install --no-install-recommends -y apt-transport-https curl wget python2.7 python build-essential clang-9 && rm -rf /var/lib/apt/lists/*
FROM toolchain as arm64
RUN dpkg --add-architecture arm64
ADD ./arm-sources.list /etc/apt/sources.list
RUN apt-get update && apt-get install -y g++-4.9-aarch64-linux-gnu gcc-4.9-aarch64-linux-gnu binutils-aarch64-linux-gnu libfontconfig-dev:arm64 && rm -rf /var/lib/apt/lists/*
FROM toolchain as armhf
RUN dpkg --add-architecture armhf
ADD ./arm-sources.list /etc/apt/sources.list
RUN apt-get update && apt-get install -y g++-4.9-arm-linux-gnueabihf gcc-4.9-arm-linux-gnueabihf binutils-arm-linux-gnueabihf libfontconfig-dev:armhf && rm -rf /var/lib/apt/lists/*