FROM alpine:latest
LABEL maintainer="gotafire"
#RUN echo -e "https://mirror.tuna.tsinghua.edu.cn/alpine/latest-stable/main\n\
#https://mirror.tuna.tsinghua.edu.cn/alpine/latest-stable/community" > /etc/apk/repositories
RUN apk update && apk --no-cache add tzdata git go \
&& cp -r -f /usr/share/zoneinfo/Asia/Shanghai /etc/localtime
ENV GOROOT /usr/lib/go
ENV GOPATH /go
ENV PATH /go/bin:$PATH
RUN mkdir -p ${GOPATH}/src ${GOPATH}/bin
WORKDIR $GOPATH
RUN go get github.com/shadowsocks/shadowsocks-go/cmd/shadowsocks-server
ADD config.json /go/bin/config.json
CMD ["/go/bin/shadowsocks-server","-c","/go/bin/config.json"]
Content type
Image
Digest
Size
160 MB
Last updated
over 6 years ago
docker pull gotafire/alpine-go:v1