Skip to content
This repository has been archived by the owner on Feb 27, 2023. It is now read-only.

Commit

Permalink
Merge pull request #663 from Starnop/bugfix-supernode-dockerfile
Browse files Browse the repository at this point in the history
bugfix: update Dockerfile of supernode
  • Loading branch information
lowzj authored Jul 9, 2019
2 parents 9aa6aa2 + 3b2b248 commit b4b0d66
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
5 changes: 3 additions & 2 deletions Dockerfile.supernode
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,15 @@ COPY . /go/src/github.com/dragonflyoss/Dragonfly
# write the resulting executable to the dir /opt/dragonfly/df-supernode.
RUN make build-supernode && make install-supernode

FROM nginx:1.16-alpine
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 [ "sh", "-c", "nginx && /opt/dragonfly/df-supernode/supernode" ]
ENTRYPOINT /root/start.sh $0 $@
5 changes: 5 additions & 0 deletions hack/start-supernode.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#!/usr/bin/env bash

nginx

/opt/dragonfly/df-supernode/supernode "$@"

0 comments on commit b4b0d66

Please sign in to comment.