mirror of https://gitea.com/gitea/test-env.git
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:
parent
29d159aa00
commit
0b848c8554
10
Dockerfile
10
Dockerfile
|
@ -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 \
|
||||
|
|
Loading…
Reference in New Issue