mirror of
https://github.com/bensuperpc/dockcross.git
synced 2024-11-10 05:07:26 +01:00
56 lines
1.9 KiB
Docker
56 lines
1.9 KiB
Docker
WORKDIR /usr/src
|
|
|
|
ARG GIT_VERSION=2.16.2
|
|
ARG CMAKE_VERSION=3.11.0
|
|
|
|
# Image build scripts
|
|
COPY \
|
|
imagefiles/build-and-install-cmake.sh \
|
|
imagefiles/build-and-install-curl.sh \
|
|
imagefiles/build-and-install-git.sh \
|
|
imagefiles/build-and-install-ninja.sh \
|
|
imagefiles/build-and-install-openssl.sh \
|
|
imagefiles/build-and-install-openssh.sh \
|
|
imagefiles/install-cmake-binary.sh \
|
|
imagefiles/install-liquidprompt-binary.sh \
|
|
imagefiles/utils.sh \
|
|
/buildscripts/
|
|
|
|
RUN \
|
|
if [ "$DEFAULT_DOCKCROSS_IMAGE" = "dockcross/manylinux-x86" ]; then \
|
|
/buildscripts/build-and-install-openssl.sh -32 && \
|
|
/buildscripts/build-and-install-openssh.sh && \
|
|
/buildscripts/build-and-install-curl.sh && \
|
|
/buildscripts/build-and-install-git.sh && \
|
|
/buildscripts/build-and-install-cmake.sh -32 || exit 1; \
|
|
else \
|
|
/buildscripts/build-and-install-openssl.sh && \
|
|
/buildscripts/build-and-install-openssh.sh && \
|
|
/buildscripts/build-and-install-curl.sh && \
|
|
/buildscripts/build-and-install-git.sh && \
|
|
/buildscripts/install-cmake-binary.sh || exit 1; \
|
|
fi; \
|
|
/buildscripts/install-liquidprompt-binary.sh && \
|
|
PYTHON=$([ -e /opt/python/cp35-cp35m/bin/python ] && echo "/opt/python/cp35-cp35m/bin/python" || echo "python") && \
|
|
/buildscripts/build-and-install-ninja.sh -python ${PYTHON} && \
|
|
rm -rf /buildscripts \
|
|
&& \
|
|
${PYTHON} -m pip install --ignore-installed conan
|
|
|
|
RUN if [ -e /opt/python/cp35-cp35m/bin/python ]; then \
|
|
: nothing to do here since it is updated by manylinux-common/install-python-packages.sh ; \
|
|
else \
|
|
curl -# -LO https://bootstrap.pypa.io/get-pip.py && \
|
|
python get-pip.py --ignore-installed && \
|
|
rm get-pip.py || exit 1; \
|
|
fi
|
|
|
|
RUN echo "root:root" | chpasswd
|
|
WORKDIR /work
|
|
ENTRYPOINT ["/dockcross/entrypoint.sh"]
|
|
|
|
# Runtime scripts
|
|
COPY imagefiles/cmake.sh /usr/local/bin/cmake
|
|
COPY imagefiles/ccmake.sh /usr/local/bin/ccmake
|
|
COPY imagefiles/entrypoint.sh imagefiles/dockcross /dockcross/
|