dockcross/Dockerfile

69 lines
1.4 KiB
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 \
ca-certificates \
2015-05-04 20:53:41 +02:00
curl \
file \
git \
2015-05-04 20:53:41 +02:00
gzip \
2015-07-23 05:36:02 +02:00
libcurl4-openssl-dev \
libssl-dev \
2015-05-04 20:53:41 +02:00
make \
ncurses-dev \
2015-05-04 20:53:41 +02:00
pkg-config \
libtool \
python \
2015-05-04 20:53:41 +02:00
rsync \
sed \
bison \
flex \
2015-05-04 20:53:41 +02:00
tar \
vim \
wget \
runit \
xz-utils && \
apt-get -y clean
WORKDIR /usr/share
RUN git clone https://github.com/nojhan/liquidprompt.git && \
cd liquidprompt && \
git checkout v_1.11
COPY imagefiles/.bashrc /root/
# Build and install CMake from source.
WORKDIR /usr/src
RUN git clone git://cmake.org/cmake.git CMake && \
cd CMake && \
git checkout v3.6.0-rc4 && \
cd .. && mkdir CMake-build && cd CMake-build && \
/usr/src/CMake/bootstrap \
--parallel=$(nproc) \
--prefix=/usr && \
make -j$(nproc) && \
./bin/cmake -DCMAKE_USE_SYSTEM_CURL:BOOL=ON \
-DCMAKE_BUILD_TYPE:STRING=Release \
-DCMAKE_USE_OPENSSL:BOOL=ON . && \
make install && \
cd .. && \
rm -rf CMake*
# Build and install Ninja from source
RUN git clone https://github.com/martine/ninja.git && \
cd ninja && \
git checkout v1.7.1 && \
python ./configure.py --bootstrap && \
./ninja && \
cp ./ninja /usr/bin/ && \
cd .. && rm -rf ninja
WORKDIR /build
ENTRYPOINT ["/dockcross/entrypoint.sh"]
COPY imagefiles/entrypoint.sh imagefiles/dockcross /dockcross/