github.com/artisanhe/tools@v1.0.1-0.20210607022958-19a8fef2eb04/onbuild.Dockerfile (about)

     1  FROM registry.cn-beijing.aliyuncs.com/g7/env-golang:golang
     2  
     3  ENV CGO_ENABLED 0
     4  
     5  RUN sed -i "s|http://dl-cdn.alpinelinux.org|http://mirrors.aliyun.com|g" /etc/apk/repositories
     6  
     7  RUN echo "2018-06"
     8  
     9  RUN apk add --no-cache curl git openssh wget unzip
    10  
    11  RUN git config --global url."https://gitlab-ci-token:AMUrtHnxw4RQ8wJ6nzHD@git.chinawayltd.com/".insteadOf "https://git.chinawayltd.com/"
    12  RUN git config --global url."https://morlay:d2cd29e12d833ce737fd3a49590c8872b68dee62@github.com/".insteadOf "https://github.com/"
    13  RUN git config --global url."https://morlay:d2cd29e12d833ce737fd3a49590c8872b68dee62@github.com/golang/".insteadOf "https://go.googlesource.com/"
    14  
    15  RUN go get -u golang.org/x/vgo \
    16      && go get -u github.com/kardianos/govendor \
    17      && go get -u github.com/morlay/gin-swagger
    18  
    19  RUN ln -s /tmp/gomodules /go/src/mod
    20  
    21  COPY . /go/src/git.chinawayltd.com/golib/tools
    22  RUN cd /go/src/git.chinawayltd.com/golib/tools && go install