10 Star 49 Fork 19

Gitee 极速下载 / Dragonfly

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
此仓库是为了提升国内下载速度的镜像仓库,每日同步一次。 原始仓库: https://github.com/alibaba/Dragonfly
克隆/下载
Dockerfile.supernode 1000 Bytes
一键复制 编辑 原始数据 按行查看 历史
odidev 提交于 2020-11-17 14:29 . Add ARM64 in goreleaser and Travis-CI
FROM golang:1.13.15-alpine as builder
WORKDIR /go/src/github.com/dragonflyoss/Dragonfly
RUN apk --no-cache add bash make gcc libc-dev git
COPY . /go/src/github.com/dragonflyoss/Dragonfly
# go build supernode.
# write the resulting executable to the dir /opt/dragonfly/df-supernode.
ARG GOPROXY
RUN make build-supernode && make install-supernode
RUN make build-client && make install-client
FROM nginx:1.19.2-alpine
RUN apk --no-cache add ca-certificates bash
COPY --from=builder /go/src/github.com/dragonflyoss/Dragonfly/hack/start-supernode.sh /root/start.sh
COPY --from=builder /go/src/github.com/dragonflyoss/Dragonfly/hack/supernode-nginx.conf /etc/nginx/nginx.conf
COPY --from=builder /opt/dragonfly/df-supernode/supernode /opt/dragonfly/df-supernode/supernode
COPY --from=builder /opt/dragonfly/df-client /opt/dragonfly/df-client
RUN ln -s /opt/dragonfly/df-client/dfget /usr/local/bin/dfget
# supernode will listen 8001,8002 in default.
EXPOSE 8001 8002
ENTRYPOINT ["/root/start.sh"]
Python
1
https://gitee.com/mirrors/Dragonfly.git
git@gitee.com:mirrors/Dragonfly.git
mirrors
Dragonfly
Dragonfly
master

搜索帮助