Skip to content
This repository was archived by the owner on Dec 20, 2024. It is now read-only.

Commit b4b0d66

Browse files
authored
Merge pull request #663 from Starnop/bugfix-supernode-dockerfile
bugfix: update Dockerfile of supernode
2 parents 9aa6aa2 + 3b2b248 commit b4b0d66

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

Dockerfile.supernode

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,14 +9,15 @@ COPY . /go/src/github.com/dragonflyoss/Dragonfly
99
# write the resulting executable to the dir /opt/dragonfly/df-supernode.
1010
RUN make build-supernode && make install-supernode
1111

12-
FROM nginx:1.16-alpine
12+
FROM dragonflyoss/nginx:apline
1313

1414
RUN apk --no-cache add ca-certificates bash
1515

16+
COPY --from=builder /go/src/github.com/dragonflyoss/Dragonfly/hack/start-supernode.sh /root/start.sh
1617
COPY --from=builder /go/src/github.com/dragonflyoss/Dragonfly/hack/supernode-nginx.conf /etc/nginx/nginx.conf
1718
COPY --from=builder /opt/dragonfly/df-supernode/supernode /opt/dragonfly/df-supernode/supernode
1819

1920
# supernode will listen 8001,8002 in default.
2021
EXPOSE 8001 8002
2122

22-
ENTRYPOINT [ "sh", "-c", "nginx && /opt/dragonfly/df-supernode/supernode" ]
23+
ENTRYPOINT /root/start.sh $0 $@

hack/start-supernode.sh

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
#!/usr/bin/env bash
2+
3+
nginx
4+
5+
/opt/dragonfly/df-supernode/supernode "$@"

0 commit comments

Comments
 (0)