Use same git version as production alpine 3.16 (#15)

Use the same version as alpine 3.16

```
git version 2.36.2
```

Reviewed-on: https://gitea.com/gitea/test-env/pulls/15
Reviewed-by: techknowlogick <techknowlogick@gitea.io>
Co-authored-by: kdumontnu <kdumontnu@noreply.gitea.io>
Co-committed-by: kdumontnu <kdumontnu@noreply.gitea.io>
This commit is contained in:
kdumontnu 2022-09-02 04:34:49 +08:00 committed by techknowlogick
parent 29d159aa00
commit 0b848c8554
1 changed files with 5 additions and 5 deletions

View File

@ -12,14 +12,14 @@ RUN addgroup \
--gid $GITEA_GID \
gitea
# upgrade git to v2.36.0
RUN curl -SL https://github.com/git/git/archive/v2.36.0.tar.gz \
# upgrade git to v2.36.2
RUN curl -SL https://github.com/git/git/archive/v2.36.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.36.0 prefix=/usr all \
&& make -C /go/git-2.36.0 prefix=/usr install \
&& rm -rf /go/git-2.36.0 \
&& make -C /go/git-2.36.2 prefix=/usr all \
&& make -C /go/git-2.36.2 prefix=/usr install \
&& rm -rf /go/git-2.36.2 \
# install git-lfs
&& curl -s https://packagecloud.io/install/repositories/github/git-lfs/script.deb.sh | bash \
&& apt-get install -y git-lfs \