mirror of
https://github.com/bensuperpc/dockcross.git
synced 2025-07-04 08:35:46 +02:00
base: Split into Dockerfile.in and common.docker
So common.docker can be re-used in other images that are not built FROM base.
This commit is contained in:
37
common.docker
Normal file
37
common.docker
Normal file
@ -0,0 +1,37 @@
|
||||
WORKDIR /usr/share
|
||||
RUN git clone "https://github.com/nojhan/liquidprompt.git" && \\
|
||||
cd liquidprompt && \\
|
||||
git checkout v_1.11
|
||||
COPY imagefiles/.bashrc /root/
|
||||
|
||||
WORKDIR /usr/src
|
||||
RUN git clone "https://cmake.org/cmake.git" CMake && \\
|
||||
cd CMake && \\
|
||||
git checkout v3.6.1 && \\
|
||||
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*
|
||||
|
||||
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
|
||||
COPY imagefiles/cmake.sh /usr/local/bin/cmake
|
||||
COPY imagefiles/ccmake.sh /usr/local/bin/ccmake
|
||||
|
||||
RUN echo "root:root" | chpasswd
|
||||
WORKDIR /work
|
||||
ENTRYPOINT ["/dockcross/entrypoint.sh"]
|
||||
|
||||
COPY imagefiles/entrypoint.sh imagefiles/dockcross /dockcross/
|
Reference in New Issue
Block a user