Use base image, add Makefile, compress RUN statements to save on disk space

Signed-off-by: Steeve Morin <steeve.morin@gmail.com>
This commit is contained in:
Steeve Morin
2014-10-17 13:42:56 +02:00
parent 2b82f22e0b
commit 703053871c
11 changed files with 93 additions and 58 deletions

View File

@ -1,15 +1,6 @@
FROM debian:jessie
FROM steeve/cross-compiler:base
MAINTAINER Steeve Morin "steeve.morin@gmail.com"
RUN apt-get update && apt-get -y --force-yes install \
bash \
curl \
pkg-config \
build-essential \
file \
rsync \
tar xz-utils bzip2 gzip sed
ENV CROSS_TRIPLE arm-linux-gnueabihf
ENV CROSS_ROOT /usr/${CROSS_TRIPLE}
ENV PATH ${PATH}:${CROSS_ROOT}/bin

View File

@ -1,21 +1,12 @@
FROM debian:jessie
FROM steeve/cross-compiler:base
MAINTAINER Steeve Morin "steeve.morin@gmail.com"
RUN apt-get update && apt-get -y --force-yes install \
bash \
curl \
pkg-config \
build-essential \
file \
tar xz-utils bzip2 gzip sed
# Add the cross compiler sources
RUN echo "deb http://toolchains.secretsauce.net unstable main" >> /etc/apt/sources.list && \
dpkg --add-architecture armhf && \
curl -L http://toolchains.secretsauce.net/key.gpg | apt-key add -
RUN apt-get update && apt-get -y --force-yes install \
RUN apt-get update && apt-get -y install \
gcc-4.9-arm-linux-gnueabihf \
g++-4.9-arm-linux-gnueabihf