Skip to content

Instantly share code, notes, and snippets.

@libook
Created March 13, 2019 16:37
Show Gist options
  • Save libook/0d24480947157d56df486b41c8f9dbf0 to your computer and use it in GitHub Desktop.
Save libook/0d24480947157d56df486b41c8f9dbf0 to your computer and use it in GitHub Desktop.
shadowsocks-go kcptun dockerfiles
# 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"]
# 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