aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJames Mills <prologic@shortcircuit.net.au>2017-06-26 01:54:33 -0700
committerJames Mills <prologic@shortcircuit.net.au>2017-06-26 01:54:33 -0700
commit76f337705e6d766e5f4f3799505ede8ec4ad43c9 (patch)
tree138a642b62bfced91aa9f7966a3eeea4a71df615
parentBump (diff)
downloadgopherproxy-76f337705e6d766e5f4f3799505ede8ec4ad43c9.tar.gz
gopherproxy-76f337705e6d766e5f4f3799505ede8ec4ad43c9.tar.bz2
gopherproxy-76f337705e6d766e5f4f3799505ede8ec4ad43c9.zip
Set sensible defaults
-rw-r--r--Dockerfile1
-rw-r--r--cmd/gopherproxy/main.go4
2 files changed, 2 insertions, 3 deletions
diff --git a/Dockerfile b/Dockerfile
index ddba3aa..e173197 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -3,7 +3,6 @@ FROM golang:alpine
3EXPOSE 80/tcp 3EXPOSE 80/tcp
4 4
5ENTRYPOINT ["gopherproxy"] 5ENTRYPOINT ["gopherproxy"]
6CMD ["-bind", "0.0.0.0:80", "-uri", "floodgap.com"]
7 6
8RUN \ 7RUN \
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
10var ( 10var (
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
15func main() { 15func main() {