mirror of
https://github.com/bensuperpc/dockcross.git
synced 2025-06-15 07:29:24 +02:00
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:
@ -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
|
||||
|
@ -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
|
||||
|
||||
|
Reference in New Issue
Block a user