1 Star 0 Fork 27

刘铭/ci-bot

forked from openEuler/ci-bot 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
Dockerfile 588 Bytes
一键复制 编辑 原始数据 按行查看 历史
wanghao 提交于 2021-10-12 11:13 +08:00 . 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"]
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Go
1
https://gitee.com/liuming3/ci-bot.git
git@gitee.com:liuming3/ci-bot.git
liuming3
ci-bot
ci-bot
master

搜索帮助