mirror of
https://github.com/bensuperpc/dockcross.git
synced 2024-12-23 00:54:26 +01:00
51 lines
1018 B
Docker
51 lines
1018 B
Docker
FROM debian:jessie
|
|
MAINTAINER Matt McCormick "matt.mccormick@kitware.com"
|
|
|
|
RUN apt-get update && apt-get -y install \
|
|
automake \
|
|
autogen \
|
|
bash \
|
|
build-essential \
|
|
bzip2 \
|
|
curl \
|
|
file \
|
|
git \
|
|
gzip \
|
|
libcurl4-openssl-dev \
|
|
libssl-dev \
|
|
make \
|
|
ncurses-dev \
|
|
pkg-config \
|
|
python \
|
|
rsync \
|
|
sed \
|
|
tar \
|
|
vim \
|
|
wget \
|
|
xz-utils
|
|
|
|
# Build and install CMake from source.
|
|
WORKDIR /usr/src
|
|
RUN git clone git://cmake.org/cmake.git CMake && \
|
|
cd CMake && \
|
|
git checkout v3.3.0-rc4
|
|
RUN mkdir CMake-build
|
|
WORKDIR /usr/src/CMake-build
|
|
RUN /usr/src/CMake/bootstrap \
|
|
--parallel=$(nproc) \
|
|
--prefix=/usr && \
|
|
make -j$(nproc) && \
|
|
./bin/cmake -DCMAKE_USE_SYSTEM_CURL:BOOL=ON \
|
|
-DCMAKE_USE_OPENSSL:BOOL=ON . && \
|
|
make 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.6.0 && \
|
|
python ./configure.py --bootstrap && \
|
|
./ninja && \
|
|
cp ./ninja /usr/bin/
|