diff options
-rw-r--r-- | Dockerfile | 15 | ||||
-rw-r--r-- | README.md | 7 |
2 files changed, 20 insertions, 2 deletions
@@ -2,4 +2,17 @@ FROM golang:alpine | |||
2 | 2 | ||
3 | EXPOSE 80/tcp | 3 | EXPOSE 80/tcp |
4 | 4 | ||
5 | ENTRYPOINT ["/gopherproxy"] | 5 | ENTRYPOINT ["gopherproxy"] |
6 | CMD [] | ||
7 | |||
8 | RUN \ | ||
9 | apk add --update git && \ | ||
10 | rm -rf /var/cache/apk/* | ||
11 | |||
12 | RUN mkdir -p /go/src/github.com/prologic/gopherproxy | ||
13 | WORKDIR /go/src/github.com/prologic/gopherproxy | ||
14 | |||
15 | COPY . /go/src/github.com/prologic/gopherproxy | ||
16 | |||
17 | RUN go get -v -d | ||
18 | RUN go install -v github.com/prologic/gopherproxy/... | ||
@@ -13,7 +13,12 @@ gopherproxy is written in Go (#golang) using the | |||
13 | 13 | ||
14 | ## Installation | 14 | ## Installation |
15 | 15 | ||
16 | $ go install github.com/prologic/gopherproxy | 16 | $ go install github.com/prologic/gopherproxy/... |
17 | |||
18 | ### Docker | ||
19 | |||
20 | $ docker build -t gopherproxy . | ||
21 | $ docker run -p 80:80 gopherproxy -uri floodgap.com | ||
17 | 22 | ||
18 | ## Usage | 23 | ## Usage |
19 | 24 | ||