2015-02-01 04:16:46 +01:00
|
|
|
FROM debian:jessie
|
2015-05-04 20:50:16 +02:00
|
|
|
MAINTAINER Matt McCormick "matt.mccormick@kitware.com"
|
2014-10-17 13:42:56 +02:00
|
|
|
|
|
|
|
RUN apt-get update && apt-get -y install \
|
2015-05-04 20:53:41 +02:00
|
|
|
automake \
|
|
|
|
autogen \
|
|
|
|
bash \
|
|
|
|
build-essential \
|
|
|
|
bzip2 \
|
|
|
|
curl \
|
|
|
|
file \
|
2015-05-04 21:49:21 +02:00
|
|
|
git \
|
2015-05-04 20:53:41 +02:00
|
|
|
gzip \
|
2015-05-04 21:49:21 +02:00
|
|
|
libssl-dev \
|
2015-05-04 20:53:41 +02:00
|
|
|
make \
|
2015-05-04 21:49:21 +02:00
|
|
|
ncurses-dev \
|
|
|
|
ninja-build \
|
2015-05-04 20:53:41 +02:00
|
|
|
pkg-config \
|
|
|
|
rsync \
|
|
|
|
sed \
|
|
|
|
tar \
|
|
|
|
vim \
|
|
|
|
wget \
|
|
|
|
xz-utils
|
2015-05-04 21:49:21 +02:00
|
|
|
|
|
|
|
# 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=$(ls /sys/bus/cpu/devices | wc -w) \
|
|
|
|
--prefix=/usr && \
|
|
|
|
make -j$(ls /sys/bus/cpu/devices | wc -w) install && \
|
|
|
|
rm -rf *
|