mirror of https://gitea.com/gitea/test-env.git
init Dockerfile (#1)
Co-authored-by: 赵智超 <1012112796@qq.com> Reviewed-on: https://gitea.com/gitea/test-env/pulls/1 Reviewed-by: 6543 <6543@obermui.de> Reviewed-by: Lunny Xiao <xiaolunwen@gmail.com> Co-authored-by: a1012112796 <1012112796@qq.com> Co-committed-by: a1012112796 <1012112796@qq.com>
This commit is contained in:
parent
d789cdba89
commit
fd0c83b566
|
@ -0,0 +1,13 @@
|
||||||
|
FROM golang:1.15
|
||||||
|
|
||||||
|
# upgrade git to v2.30.1
|
||||||
|
RUN curl -SL https://github.com/git/git/archive/v2.30.1.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 \
|
||||||
|
# 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