Update dockerfile and server for app dir

pull/2/head
Michael Crosby 12 years ago
parent 877effc6ad
commit 40435f898f

@ -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

@ -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))
}

Loading…
Cancel
Save