1 Star 0 Fork 19

user_499098/Dragonfly

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
Dockerfile.supernode 816 Bytes
一键复制 编辑 原始数据 按行查看 历史
FROM golang:1.12.10-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.
RUN make build-supernode && make install-supernode
FROM dragonflyoss/nginx:apline
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
# supernode will listen 8001,8002 in default.
EXPOSE 8001 8002
ENTRYPOINT ["/root/start.sh"]
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Java
1
https://gitee.com/yunwisdoms/Dragonfly.git
git@gitee.com:yunwisdoms/Dragonfly.git
yunwisdoms
Dragonfly
Dragonfly
master

搜索帮助