diff options
-rw-r--r-- | Dockerfile | 1 | ||||
-rw-r--r-- | cmd/gopherproxy/main.go | 4 |
2 files changed, 2 insertions, 3 deletions
@@ -3,7 +3,6 @@ FROM golang:alpine | |||
3 | EXPOSE 80/tcp | 3 | EXPOSE 80/tcp |
4 | 4 | ||
5 | ENTRYPOINT ["gopherproxy"] | 5 | ENTRYPOINT ["gopherproxy"] |
6 | CMD ["-bind", "0.0.0.0:80", "-uri", "floodgap.com"] | ||
7 | 6 | ||
8 | RUN \ | 7 | RUN \ |
9 | apk add --update git && \ | 8 | apk add --update git && \ |
diff --git a/cmd/gopherproxy/main.go b/cmd/gopherproxy/main.go index bc5050e..fa20c4e 100644 --- a/cmd/gopherproxy/main.go +++ b/cmd/gopherproxy/main.go | |||
@@ -8,8 +8,8 @@ import ( | |||
8 | ) | 8 | ) |
9 | 9 | ||
10 | var ( | 10 | var ( |
11 | bind = flag.String("bind", ":80", "[int]:port to bind to") | 11 | bind = flag.String("bind", "0.0.0.0:80", "[int]:port to bind to") |
12 | uri = flag.String("uri", "127.0.0.1:70", "<host>:[port] to proxy to") | 12 | uri = flag.String("uri", "floodgap.com", "<host>:[port] to proxy to") |
13 | ) | 13 | ) |
14 | 14 | ||
15 | func main() { | 15 | func main() { |