1 Star 0 Fork 28

George.Cao / ci-bot

forked from openEuler / ci-bot 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
Dockerfile 588 Bytes
一键复制 编辑 原始数据 按行查看 历史
wanghao 提交于 2021-10-12 11:13 . change the mirror
FROM openeuler/openeuler:20.03 AS builder
COPY . /go/src/gitee.com/openeuler/ci-bot
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
WORKDIR /bot
COPY ./_service /bot
EXPOSE 8888
ENTRYPOINT ["ci-bot"]
Go
1
https://gitee.com/georgecao/ci-bot.git
git@gitee.com:georgecao/ci-bot.git
georgecao
ci-bot
ci-bot
master

搜索帮助