2020-11-05 05:50:39 +00:00
|
|
|
FROM webdevops/php-nginx:ubuntu-14.04 AS BUILDER
|
2019-11-01 11:54:37 +00:00
|
|
|
|
2020-11-05 05:50:39 +00:00
|
|
|
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 <bkraul@belmankraul.com>
|
|
|
|
COPY --from=BUILDER /tmp/git-build/git_2.24.0-1_amd64.deb /tmp/
|
2019-11-01 11:54:37 +00:00
|
|
|
RUN set -x \
|
|
|
|
&& apt update \
|
|
|
|
# install pre-requisites.
|
|
|
|
&& apt install smbclient samba-common -y \
|
2020-11-05 05:50:39 +00:00
|
|
|
&& 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" \
|
2019-11-01 11:54:37 +00:00
|
|
|
# perform image cleanup.
|
|
|
|
&& docker-run-bootstrap \
|
|
|
|
&& docker-image-cleanup
|