diff --git a/Dockerfile b/Dockerfile index 30c88ef..0ab0547 100644 --- a/Dockerfile +++ b/Dockerfile @@ -23,4 +23,4 @@ COPY --from=builder /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/ COPY --from=builder /go/whoami/whoami . ENTRYPOINT ["/whoami"] -EXPOSE 80 +EXPOSE 8000 diff --git a/app.go b/app.go index 36665c3..53b392e 100644 --- a/app.go +++ b/app.go @@ -45,7 +45,7 @@ func init() { flag.StringVar(&cert, "cert", "", "give me a certificate") flag.StringVar(&key, "key", "", "give me a key") flag.StringVar(&ca, "cacert", "", "give me a CA chain, enforces mutual TLS") - flag.StringVar(&port, "port", getEnv("WHOAMI_PORT_NUMBER", "80"), "give me a port number") + flag.StringVar(&port, "port", getEnv("WHOAMI_PORT_NUMBER", "8000"), "give me a port number") flag.StringVar(&name, "name", os.Getenv("WHOAMI_NAME"), "give me a name") }