update to go1.17 and git 2.33.0 (#8)

Signed-off-by: techknowlogick <techknowlogick@gitea.io>
Reviewed-on: https://gitea.com/gitea/test-env/pulls/8
Reviewed-by: 6543 <6543@obermui.de>
Reviewed-by: Lunny Xiao <xiaolunwen@gmail.com>
Co-authored-by: techknowlogick <techknowlogick@gitea.io>
Co-committed-by: techknowlogick <techknowlogick@gitea.io>
This commit is contained in:
techknowlogick 2021-08-23 21:40:01 +08:00 committed by Lunny Xiao
parent cfc54f9eac
commit 5cbc2c5b39
1 changed files with 6 additions and 6 deletions

View File

@ -1,13 +1,13 @@
FROM golang:1.16
FROM golang:1.17-buster
# upgrade git to v2.30.2
RUN curl -SL https://github.com/git/git/archive/v2.30.2.tar.gz \
# upgrade git to v2.33.0
RUN curl -SL https://github.com/git/git/archive/v2.33.0.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.2 prefix=/usr all \
&& make -C /go/git-2.30.2 prefix=/usr install \
&& rm -rf /go/git-2.30.2 \
&& make -C /go/git-2.33.0 prefix=/usr all \
&& make -C /go/git-2.33.0 prefix=/usr install \
&& rm -rf /go/git-2.33.0 \
# install git-lfs
&& curl -s https://packagecloud.io/install/repositories/github/git-lfs/script.deb.sh | bash \
&& apt-get install -y git-lfs \