From 76f337705e6d766e5f4f3799505ede8ec4ad43c9 Mon Sep 17 00:00:00 2001 From: James Mills Date: Mon, 26 Jun 2017 01:54:33 -0700 Subject: Set sensible defaults --- Dockerfile | 1 - cmd/gopherproxy/main.go | 4 ++-- 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 EXPOSE 80/tcp ENTRYPOINT ["gopherproxy"] -CMD ["-bind", "0.0.0.0:80", "-uri", "floodgap.com"] RUN \ 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 ( ) var ( - bind = flag.String("bind", ":80", "[int]:port to bind to") - uri = flag.String("uri", "127.0.0.1:70", ":[port] to proxy to") + bind = flag.String("bind", "0.0.0.0:80", "[int]:port to bind to") + uri = flag.String("uri", "floodgap.com", ":[port] to proxy to") ) func main() { -- cgit v1.2.3-70-g09d2