dockcross/Dockerfile

48 lines
951 B
Docker
Raw Normal View History

2015-02-01 04:16:46 +01:00
FROM debian:jessie
MAINTAINER Matt McCormick "matt.mccormick@kitware.com"
RUN apt-get update && apt-get -y install \
2015-05-04 20:53:41 +02:00
automake \
autogen \
bash \
build-essential \
bzip2 \
curl \
file \
git \
2015-05-04 20:53:41 +02:00
gzip \
libssl-dev \
2015-05-04 20:53:41 +02:00
make \
ncurses-dev \
2015-05-04 20:53:41 +02:00
pkg-config \
python \
2015-05-04 20:53:41 +02:00
rsync \
sed \
tar \
vim \
wget \
xz-utils
# Build and install CMake from source.
WORKDIR /usr/src
# nighty-master 2015-05-04
RUN git clone git://cmake.org/cmake.git CMake && \
cd CMake && \
git checkout 6cd6d50871ce28d0c72336a6aca01814487df5e1
RUN mkdir CMake-build
WORKDIR /usr/src/CMake-build
RUN /usr/src/CMake/bootstrap \
--parallel=$(nproc) \
--prefix=/usr && \
make -j$(nproc) install && \
rm -rf *
WORKDIR /usr/src
# Build and install Ninja from source
RUN git clone https://github.com/martine/ninja.git && \
cd ninja && \
git checkout v1.5.3 && \
python ./configure.py --bootstrap && \
./ninja && \
cp ./ninja /usr/bin/