forked from conan-io/conan-docker-tools
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
32 lines (27 loc) · 1.54 KB
/
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
25
26
27
28
29
30
31
32
FROM conanio/gcc6
LABEL maintainer="Luis Martinez de Bartolome <luism@jfrog.com>"
ARG CONAN_VERSION
ENV CC=arm-linux-gnueabihf-gcc \
CXX=arm-linux-gnueabihf-g++ \
CMAKE_C_COMPILER=arm-linux-gnueabihf-gcc \
CMAKE_CXX_COMPILER=arm-linux-gnueabihf-g++ \
STRIP=arm-linux-gnueabihf-strip \
RANLIB=arm-linux-gnueabihf-ranlib\
AS=arm-linux-gnueabihf-as \
AR=arm-linux-gnueabihf-ar \
LD=arm-linux-gnueabihf-ld \
FC=arm-linux-gnueabihf-gfortran-6
COPY sources.list /etc/apt/sources.list
COPY armhf.list /etc/apt/sources.list.d/armhf.list
RUN sudo dpkg --add-architecture armhf \
&& sudo apt-get -qq update \
&& sudo apt-get -qq install -y --force-yes --no-install-recommends --no-install-suggests \
".*6.*arm-linux-gnueabihf.*" \
&& sudo update-alternatives --install /usr/bin/arm-linux-gnueabihf-g++ arm-linux-gnueabihf-g++ /usr/bin/arm-linux-gnueabihf-g++-6 100 \
&& sudo update-alternatives --install /usr/bin/arm-linux-gnueabihf-c++ arm-linux-gnueabihf-c++ /usr/bin/arm-linux-gnueabihf-g++-6 100 \
&& sudo update-alternatives --install /usr/bin/arm-linux-gnueabihf-gcc arm-linux-gnueabihf-gcc /usr/bin/arm-linux-gnueabihf-gcc-6 100 \
&& sudo update-alternatives --install /usr/bin/arm-linux-gnueabihf-cc arm-linux-gnueabihf-cc /usr/bin/arm-linux-gnueabihf-gcc-6 100 \
&& sudo rm -rf /var/lib/apt/lists/* \
&& pip install -q --no-cache-dir conan==${CONAN_VERSION} conan-package-tools --upgrade \
&& conan profile new default --detect \
&& conan profile update settings.arch=armv7hf default