FROM webdevops/php-nginx:ubuntu-14.04 AS BUILDER ADD ./compile-git-with-openssl.sh /root/compile-git-with-openssl.sh RUN set -x \ && apt update \ && apt install -y checkinstall \ && /root/compile-git-with-openssl.sh --skip-tests --build-dir=/tmp/git-build \ && cd /tmp/git-build \ && checkinstall --pkgname=git --pkgversion=2.24.0 --maintainer=bkraul@belmankraul.com --pkggroup=git --nodoc -y --install=no --backup=no FROM webdevops/php-nginx:ubuntu-14.04 MAINTAINER Belman Kraul COPY --from=BUILDER /tmp/git-build/git_2.24.0-1_amd64.deb /tmp/ RUN set -x \ && apt update \ # install pre-requisites. && apt install smbclient samba-common -y \ && apt remove -y git git-man liberror-perl \ && dpkg -i "/tmp/git_2.24.0-1_amd64.deb" \ && rm "/tmp/git_2.24.0-1_amd64.deb" \ # perform image cleanup. && docker-run-bootstrap \ && docker-image-cleanup