Sign inSign up

gotafire/alpine-go

By gotafire

Updated over 6 years ago

Image
0

113

gotafire/alpine-go repository overview

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

Install base packages

RUN apk update && apk --no-cache add tzdata git go \
&& cp -r -f /usr/share/zoneinfo/Asia/Shanghai /etc/localtime

Configure Go

ENV GOROOT /usr/lib/go
ENV GOPATH /go
ENV PATH /go/bin:$PATH

RUN mkdir -p ${GOPATH}/src ${GOPATH}/bin

WORKDIR $GOPATH

Configure ss

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"]

Tag summary

Content type

Image

Digest

Size

160 MB

Last updated

over 6 years ago

docker pull gotafire/alpine-go:v1