diff --git a/Dockerfile b/Dockerfile index 70877a542..3ee4c68dc 100644 --- a/Dockerfile +++ b/Dockerfile @@ -8,7 +8,8 @@ RUN echo "deb http://archive.ubuntu.com/ubuntu precise main universe" > /etc/apt RUN apt-get update RUN apt-get upgrade -ADD . /dockerui +ADD . /app/ +ADD dockerui dockerui EXPOSE 9000:9000 diff --git a/dockerui.go b/dockerui.go index 23bde6a7d..25d812668 100644 --- a/dockerui.go +++ b/dockerui.go @@ -6,7 +6,6 @@ import ( "github.com/elazarl/goproxy" "log" "net/http" - "os" "strings" ) @@ -66,12 +65,7 @@ func main() { path := fmt.Sprintf(":%s", *port) - cwd, err := os.Getwd() - if err != nil { - log.Fatal(err) - } - - handler := createHandler(cwd) + handler := createHandler("/app") log.Fatal(http.ListenAndServe(path, handler)) }