2016-09-20 06:35:37 +02:00
|
|
|
WORKDIR /usr/src
|
2016-11-18 21:30:03 +01:00
|
|
|
|
2018-12-19 23:18:23 +01:00
|
|
|
ARG GIT_VERSION=2.20.1
|
2018-12-19 21:41:24 +01:00
|
|
|
ARG CMAKE_VERSION=3.13.2
|
2018-04-13 20:56:49 +02:00
|
|
|
|
2018-06-07 02:17:10 +02:00
|
|
|
# Image build scripts
|
2018-06-05 05:53:38 +02:00
|
|
|
COPY \
|
2018-06-07 02:27:20 +02:00
|
|
|
imagefiles/build-and-install-cmake.sh \
|
|
|
|
imagefiles/build-and-install-curl.sh \
|
2018-06-05 05:53:38 +02:00
|
|
|
imagefiles/build-and-install-git.sh \
|
2018-06-07 02:27:20 +02:00
|
|
|
imagefiles/build-and-install-ninja.sh \
|
2018-04-13 20:56:49 +02:00
|
|
|
imagefiles/build-and-install-openssl.sh \
|
|
|
|
imagefiles/build-and-install-openssh.sh \
|
|
|
|
imagefiles/install-cmake-binary.sh \
|
2018-06-05 05:48:09 +02:00
|
|
|
imagefiles/install-liquidprompt-binary.sh \
|
2018-06-07 02:58:31 +02:00
|
|
|
imagefiles/install-python-packages.sh \
|
2018-06-07 02:27:20 +02:00
|
|
|
imagefiles/utils.sh \
|
2018-06-07 02:17:10 +02:00
|
|
|
/buildscripts/
|
2018-04-13 20:56:49 +02:00
|
|
|
|
2016-11-21 12:08:30 +01:00
|
|
|
RUN \
|
2019-05-22 09:05:11 +02:00
|
|
|
X86_FLAG=$([ "$DEFAULT_DOCKCROSS_IMAGE" = "dockcross/manylinux1-x86" ] && echo "-32" || echo "") && \
|
2018-06-09 20:14:19 +02:00
|
|
|
/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/install-cmake-binary.sh $X86_FLAG && \
|
2018-06-07 02:17:10 +02:00
|
|
|
/buildscripts/install-liquidprompt-binary.sh && \
|
2018-06-05 07:19:46 +02:00
|
|
|
PYTHON=$([ -e /opt/python/cp35-cp35m/bin/python ] && echo "/opt/python/cp35-cp35m/bin/python" || echo "python") && \
|
2018-06-07 02:58:31 +02:00
|
|
|
/buildscripts/install-python-packages.sh -python ${PYTHON} && \
|
2018-06-07 02:17:10 +02:00
|
|
|
/buildscripts/build-and-install-ninja.sh -python ${PYTHON} && \
|
2018-06-07 02:58:31 +02:00
|
|
|
rm -rf /buildscripts
|
2016-09-20 06:35:37 +02:00
|
|
|
|
|
|
|
RUN echo "root:root" | chpasswd
|
|
|
|
WORKDIR /work
|
|
|
|
ENTRYPOINT ["/dockcross/entrypoint.sh"]
|
|
|
|
|
2018-06-07 02:17:10 +02:00
|
|
|
# Runtime scripts
|
|
|
|
COPY imagefiles/cmake.sh /usr/local/bin/cmake
|
|
|
|
COPY imagefiles/ccmake.sh /usr/local/bin/ccmake
|
2016-09-20 06:35:37 +02:00
|
|
|
COPY imagefiles/entrypoint.sh imagefiles/dockcross /dockcross/
|