Upgrade git to v2.30.2 (#6)

Reviewed-on: https://gitea.com/gitea/test-env/pulls/6
Reviewed-by: Lunny Xiao <xiaolunwen@gmail.com>
Reviewed-by: techknowlogick <techknowlogick@gitea.io>
Co-authored-by: 6543 <6543@obermui.de>
Co-committed-by: 6543 <6543@obermui.de>
This commit is contained in:
6543 2021-03-12 10:04:23 +08:00 committed by techknowlogick
parent 48fe3847bd
commit 2e505962c7
1 changed files with 5 additions and 5 deletions

View File

@ -1,13 +1,13 @@
FROM golang:1.16
# upgrade git to v2.30.1
RUN curl -SL https://github.com/git/git/archive/v2.30.1.tar.gz \
# upgrade git to v2.30.2
RUN curl -SL https://github.com/git/git/archive/v2.30.2.tar.gz \
| tar -xzv -C /go \
&& apt-get update \
&& apt-get install -y libcurl4-gnutls-dev libexpat1-dev gettext libz-dev libssl-dev \
&& make -C /go/git-2.30.1 prefix=/usr all \
&& make -C /go/git-2.30.1 prefix=/usr install \
&& rm -rf /go/git-2.30.1 \
&& make -C /go/git-2.30.2 prefix=/usr all \
&& make -C /go/git-2.30.2 prefix=/usr install \
&& rm -rf /go/git-2.30.2 \
# install git-lfs
&& curl -s https://packagecloud.io/install/repositories/github/git-lfs/script.deb.sh | bash \
&& apt-get install -y git-lfs \