From fd0c83b5666bbb9d4baba5dd69b99440cd8082c3 Mon Sep 17 00:00:00 2001 From: a1012112796 <1012112796@qq.com> Date: Thu, 18 Feb 2021 09:56:04 +0800 Subject: [PATCH] init Dockerfile (#1) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 Co-authored-by: a1012112796 <1012112796@qq.com> Co-committed-by: a1012112796 <1012112796@qq.com> --- Dockerfile | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 Dockerfile diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..01ccf92 --- /dev/null +++ b/Dockerfile @@ -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