Merge branch 'master' into init_drone_file

This commit is contained in:
Lunny Xiao 2021-02-18 09:56:32 +08:00
commit cb6a87d34a
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