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:
a1012112796 2021-02-18 09:56:04 +08:00 committed by Lunny Xiao
parent d789cdba89
commit fd0c83b566
1 changed files with 13 additions and 0 deletions

13
Dockerfile Normal file
View File

@ -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