From 3905afe1e231b5d9d73dff852638cd3282dd3c7c Mon Sep 17 00:00:00 2001 From: wanghaosq Date: Tue, 12 Oct 2021 11:13:07 +0800 Subject: [PATCH] change the mirror --- Dockerfile | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) diff --git a/Dockerfile b/Dockerfile index 9cdfccd..6848d78 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,11 +1,17 @@ -FROM golang:1.12.1-alpine3.9 AS builder +FROM openeuler/openeuler:20.03 AS builder COPY . /go/src/gitee.com/openeuler/ci-bot -RUN apk --no-cache update && \ -apk --no-cache upgrade && \ -CGO_ENABLED=1 go build -v -o /usr/local/bin/ci-bot -ldflags="-w -s -extldflags -static" \ -gitee.com/openeuler/ci-bot/cmd/cibot +ENV GOROOT=/usr/local/go +ENV PATH=$PATH:$GOROOT/bin +ENV GOPATH=/go + +RUN yum -y update && \ + yum install -y wget && \ + yum install -y tar && \ + wget -O go.tar.gz https://golang.org/dl/go1.12.1.linux-amd64.tar.gz && \ + tar --remove-files -C /usr/local -zxf go.tar.gz && \ + CGO_ENABLED=1 go build -v -o /usr/local/bin/ci-bot -ldflags="-w -s -extldflags -static" gitee.com/openeuler/ci-bot/cmd/cibot RUN mkdir -p /bot -- Gitee