mirror of https://gitea.com/gitea/test-env.git
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:
parent
cfc54f9eac
commit
5cbc2c5b39
12
Dockerfile
12
Dockerfile
|
@ -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 \
|
||||
|
|
Loading…
Reference in New Issue