forked from yinqiwen/gsnova
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
39 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
# Start from a Debian image with the latest version of Go installed | ||
# and a workspace (GOPATH) configured at /go. | ||
FROM alpine:3.6 | ||
|
||
RUN \ | ||
apk add --no-cache --virtual curl \ | ||
&& mkdir -m 777 /gsnova \ | ||
&& cd /gsnova \ | ||
&& curl -fSL https://github.com/yinqiwen/gsnova/releases/download/{{ .Version }}/gsnova_server_linux_amd64-{{ .Version }}.tar.bz2 | tar xj \ | ||
&& rm -rf gsnova_server_linux_amd64-{{ .Version }}.tar.bz2 \ | ||
&& chgrp -R 0 /gsnova \ | ||
&& chmod -R g+rwX /gsnova | ||
|
||
#WORKDIR /go/bin | ||
# Run the outyet command by default when the container starts. | ||
CMD ["/gsnova/gsnova_server","-cmd" ,"-key", "809240d3a021449f6e67aa73221d42df942a308a", "-tcp", ":9443", "-quic", ":9443", "-http", ":9444", "-kcp", ":9444", "-http2", ":9445", "-tls", ":9446", "-log", "console"] | ||
# Document that the service listens on port 9443. | ||
EXPOSE 9443 9444 9445 9446 | ||
|
||
PUSH gsnova/gsnova-server:{{ .Version }} |