mirror of
https://github.com/bensuperpc/dockcross.git
synced 2024-11-08 20:27:27 +01:00
55 lines
1.9 KiB
Docker
55 lines
1.9 KiB
Docker
WORKDIR /usr/src
|
|
|
|
ARG GIT_VERSION=2.42.0
|
|
|
|
ARG CMAKE_VERSION=3.27.5
|
|
|
|
ARG NINJA_VERSION=1.11.1
|
|
ARG FLATCC_VERSION=0.6.1
|
|
|
|
ARG OPENSSL_VERSION=openssl-1.1.1o
|
|
ARG OPENSSL_HASH=9384a2b0570dd80358841464677115df785edb941c71211f75076d72fe6b438f
|
|
|
|
ARG CURL_VERSION=curl-7.76.0
|
|
ARG CURL_HASH=3b4378156ba09e224008e81dcce854b7ce4d182b1f9cfb97fe5ed9e9c18c6bd3
|
|
|
|
ARG PERL_VERSION=perl-5.32.1
|
|
ARG PERL_HASH=03b693901cd8ae807231b1787798cf1f2e0b8a56218d07b7da44f784a7caeb2c
|
|
|
|
# Image build scripts
|
|
COPY \
|
|
imagefiles/build-and-install-cmake.sh \
|
|
imagefiles/build-and-install-curl.sh \
|
|
imagefiles/build-and-install-flatcc.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 && \
|
|
/buildscripts/build-and-install-cmake.sh $X86_FLAG && \
|
|
/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} && \
|
|
/buildscripts/build-and-install-flatcc.sh && \
|
|
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
|