mirror of https://gitea.com/gitea/test-env.git
init Dockerfile
This commit is contained in:
parent
d789cdba89
commit
83de03e4b8
|
@ -0,0 +1,23 @@
|
|||
FROM golang:1.15
|
||||
|
||||
RUN echo "deb https://mirrors.tuna.tsinghua.edu.cn/debian/ buster main contrib non-free" > /etc/apt/sources.list
|
||||
RUN echo "deb https://mirrors.tuna.tsinghua.edu.cn/debian/ buster-updates main contrib non-free" >> /etc/apt/sources.list
|
||||
RUN echo "deb https://mirrors.tuna.tsinghua.edu.cn/debian/ buster-backports main contrib non-free" >> /etc/apt/sources.list
|
||||
RUN echo "deb https://mirrors.tuna.tsinghua.edu.cn/debian-security buster/updates main contrib non-free" >> /etc/apt/sources.list
|
||||
|
||||
# upgrade git to v2.30.1
|
||||
WORKDIR /go
|
||||
RUN apt-get update
|
||||
RUN apt-get install -y wget
|
||||
RUN wget "https://github.com/git/git/archive/v2.30.1.tar.gz"
|
||||
RUN tar -xvf v2.30.1.tar.gz
|
||||
WORKDIR /go/git-2.30.1
|
||||
RUN apt-get install -y libcurl4-gnutls-dev libexpat1-dev gettext libz-dev libssl-dev
|
||||
RUN make prefix=/usr all
|
||||
RUN make prefix=/usr install
|
||||
WORKDIR /go
|
||||
RUN rm -rf git-2.30.1 v2.30.1.tar.gz
|
||||
|
||||
# install git-lfs
|
||||
RUN curl -s https://packagecloud.io/install/repositories/github/git-lfs/script.deb.sh | bash
|
||||
RUN apt-get install -y git-lfs
|
Loading…
Reference in New Issue