1 Star 0 Fork 1

冲击 / micro

forked from juchao1989 / micro 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
Dockerfile 577 Bytes
一键复制 编辑 原始数据 按行查看 历史
FROM alpine:3.12.1 as builder
COPY --from=golang:1.15-alpine /usr/local/go/ /usr/local/go/
ENV PATH="/usr/local/go/bin:${PATH}"
RUN apk --no-cache add make git gcc libtool musl-dev
COPY go.mod .
COPY go.sum .
RUN go mod download
COPY . /
RUN make ; rm -rf $GOPATH/pkg/mod
FROM alpine:3.12.1
COPY --from=golang:1.15-alpine /usr/local/go/ /usr/local/go/
ENV PATH="/usr/local/go/bin:${PATH}"
RUN apk --no-cache add make git gcc libtool musl-dev
RUN apk --no-cache add ca-certificates && rm -rf /var/cache/apk/* /tmp/*
COPY --from=builder /micro /micro
ENTRYPOINT ["/micro"]
Go
1
https://gitee.com/1273640670/micro.git
git@gitee.com:1273640670/micro.git
1273640670
micro
micro
master

搜索帮助