add docker file for bot

上级 2029d18e
FROM golang:1.12.1-alpine3.9 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
RUN mkdir -p /bot
WORKDIR /bot
EXPOSE 8888
ENTRYPOINT ["ci-bot"]
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册