Commit 78168268 authored by 谢旭东's avatar 谢旭东

Merge branch 'go' into 'master'

fix golang builder

See merge request !30
parents a16b0fa8 6e58a85b
Pipeline #41363 skipped with stages
# syntax=docker/dockerfile:1.2
FROM golang:1.15-alpine3.13 AS builder
ENV GOPROXY=https://goproxy.io,direct
ENV GOPRIVATE=git.supremind.info
ENV GO111MODULE=on
ENV GOSUMDB=off
RUN go get github.com/onsi/ginkgo/ginkgo@v1.16.4
# for accurate cross-package test coverage report
# see: https://www.ory.sh/golang-go-code-coverage-accurate/
RUN go get github.com/ory/go-acc@v0.2.6
FROM golang:1.15-alpine3.13
LABEL MAINTAINER="atom@supremind.com"
ENV GOPROXY=https://goproxy.sl.supremind.info,https://goproxy.io,https://goproxy.cn,direct
ENV GOPROXY=https://goproxy.io,direct
ENV GOPRIVATE=git.supremind.info
ENV GO111MODULE=on
ENV GOSUMDB=off
RUN sed -i 's/dl-cdn.alpinelinux.org/mirrors.aliyun.com/g' /etc/apk/repositories
RUN apk add --no-cache git build-base ca-certificates bash curl openssh-client
RUN go get -u github.com/onsi/ginkgo/ginkgo
RUN cp /go/bin/ginkgo /usr/local/bin/ginkgo
# for accurate cross-package test coverage report
# see: https://www.ory.sh/golang-go-code-coverage-accurate/
RUN go get -u github.com/ory/go-acc
RUN cp /go/bin/go-acc /usr/local/bin/go-acc
COPY --from=builder /go/bin/ginkgo /usr/local/bin/ginkgo
COPY --from=builder /go/bin/go-acc /usr/local/bin/go-acc
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment