1 Star 0 Fork 19

lanxingmo / Dragonfly

forked from Gitee 极速下载 / Dragonfly 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
Dockerfile 799 Bytes
一键复制 编辑 原始数据 按行查看 历史
FROM golang:1.10.4-alpine as builder
WORKDIR /go/src/github.com/dragonflyoss/Dragonfly
COPY . /go/src/github.com/dragonflyoss/Dragonfly
RUN apk --no-cache add bash make gcc libc-dev git
# go build dfdaemon and dfget.
# write the resulting executable to the dir /dfclient.
RUN CGO_ENABLED=1 GOOS=linux go build -a -installsuffix cgo -o /dfclient/dfdaemon cmd/dfdaemon/main.go
RUN CGO_ENABLED=1 GOOS=linux go build -a -installsuffix cgo -o /dfclient/dfget cmd/dfget/main.go
FROM alpine:3.8
RUN apk --no-cache add ca-certificates bash
COPY --from=builder /dfclient /dfclient
# dfdaemon will listen 65001 in default.
EXPOSE 65001
# use the https://index.docker.io as default registry.
CMD [ "--registry", "https://index.docker.io" ]
ENTRYPOINT [ "/dfclient/dfdaemon" ]
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/lanxingmo/Dragonfly.git
git@gitee.com:lanxingmo/Dragonfly.git
lanxingmo
Dragonfly
Dragonfly
master

搜索帮助

344bd9b3 5694891 D2dac590 5694891