mirror of https://github.com/portainer/portainer
Update dockerfile and server for app dir
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 update
|
||||||
RUN apt-get upgrade
|
RUN apt-get upgrade
|
||||||
|
|
||||||
ADD . /dockerui
|
ADD . /app/
|
||||||
|
ADD dockerui dockerui
|
||||||
|
|
||||||
EXPOSE 9000:9000
|
EXPOSE 9000:9000
|
||||||
|
|
||||||
|
|
|
@ -6,7 +6,6 @@ import (
|
||||||
"github.com/elazarl/goproxy"
|
"github.com/elazarl/goproxy"
|
||||||
"log"
|
"log"
|
||||||
"net/http"
|
"net/http"
|
||||||
"os"
|
|
||||||
"strings"
|
"strings"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
@ -66,12 +65,7 @@ func main() {
|
||||||
|
|
||||||
path := fmt.Sprintf(":%s", *port)
|
path := fmt.Sprintf(":%s", *port)
|
||||||
|
|
||||||
cwd, err := os.Getwd()
|
handler := createHandler("/app")
|
||||||
if err != nil {
|
|
||||||
log.Fatal(err)
|
|
||||||
}
|
|
||||||
|
|
||||||
handler := createHandler(cwd)
|
|
||||||
|
|
||||||
log.Fatal(http.ListenAndServe(path, handler))
|
log.Fatal(http.ListenAndServe(path, handler))
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue