未验证 提交 438f9a03 编写于 作者: LinuxSuRen's avatar LinuxSuRen 提交者: GitHub

Improve docker build (#396)

上级 3cd0e689
FROM alpine:3.3
FROM golang:1.12 AS builder
RUN sed -i 's|dl-cdn.alpinelinux.org|mirrors.aliyun.com|g' /etc/apk/repositories
RUN apk add --no-cache ca-certificates curl
WORKDIR /work
COPY . .
RUN ls -hal && make linux
RUN curl -L https://github.com/jenkins-zh/jenkins-cli/releases/latest/download/jcli-linux-amd64.tar.gz|tar xzv && \
mv jcli /usr/local/bin/
ENTRYPOINT ["jcli"]
FROM alpine:3.10
COPY --from=builder /work/bin/linux/jcli /usr/bin/jcli
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册