mirror of
https://github.com/bensuperpc/dockcross.git
synced 2024-12-23 17:14:26 +01:00
Bensuperpc
54f73cbb65
remove manylinux2010 and manylinux1 images Signed-off-by: Bensuperpc <bensuperpc@gmail.com>
40 lines
1.5 KiB
Docker
40 lines
1.5 KiB
Docker
WORKDIR /usr/src
|
|
|
|
ARG GIT_VERSION=2.32.0
|
|
ARG CMAKE_VERSION=3.20.5
|
|
|
|
# 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/install-python-packages.sh \
|
|
imagefiles/utils.sh \
|
|
/buildscripts/
|
|
|
|
RUN \
|
|
X86_FLAG=$([ "$DEFAULT_DOCKCROSS_IMAGE" = "dockcross/manylinux2014-x86" ] && echo "-32" || echo "") && \
|
|
/buildscripts/build-and-install-openssl.sh $X86_FLAG && \
|
|
/buildscripts/build-and-install-openssh.sh && \
|
|
/buildscripts/build-and-install-curl.sh && \
|
|
/buildscripts/build-and-install-git.sh && \
|
|
if [ "$CMAKE_BIN" = "true" ]; then CMAKE_VERSION=3.17.1 && /buildscripts/install-cmake-binary.sh $X86_FLAG;else /buildscripts/build-and-install-cmake.sh $X86_FLAG;fi && \
|
|
/buildscripts/install-liquidprompt-binary.sh && \
|
|
PYTHON=$([ -e /opt/python/cp38-cp38/bin/python ] && echo "/opt/python/cp38-cp38/bin/python" || echo "python3") && \
|
|
/buildscripts/install-python-packages.sh -python ${PYTHON} && \
|
|
/buildscripts/build-and-install-ninja.sh -python ${PYTHON} && \
|
|
rm -rf /buildscripts
|
|
|
|
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
|