Created
March 13, 2019 16:37
-
-
Save libook/0d24480947157d56df486b41c8f9dbf0 to your computer and use it in GitHub Desktop.
shadowsocks-go kcptun dockerfiles
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
# docker build -t kcptun-client -f ./kcptun-client.dockerfile . | |
FROM golang:alpine | |
MAINTAINER libook | |
RUN apk --no-cache add git \ | |
&& go get -u github.com/xtaci/kcptun/... \ | |
&& ls $GOPATH/bin \ | |
&& mv $GOPATH/bin/client / \ | |
&& rm -rf $GOPATH \ | |
&& apk del git | |
EXPOSE 10816 | |
ENTRYPOINT ["/client", "-c", "/kcptun/config.json"] |
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
# docker build -t shadowsocks-go-client -f ./shadowsocks-go-client.dockerfile . | |
FROM golang:alpine | |
MAINTAINER libook | |
RUN apk --no-cache add git \ | |
&& go get github.com/shadowsocks/shadowsocks-go/cmd/shadowsocks-local \ | |
&& ls $GOPATH/bin \ | |
&& mv $GOPATH/bin/shadowsocks-local / \ | |
&& rm -rf $GOPATH \ | |
&& apk del git | |
EXPOSE 1080 | |
ENTRYPOINT ["/shadowsocks-local", "-c", "/shadowsocks/config.json"] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment