mirror of
https://github.com/portainer/portainer.git
synced 2025-07-24 07:49:41 +02:00
Update dockerfile and server for app dir
This commit is contained in:
parent
877effc6ad
commit
40435f898f
2 changed files with 3 additions and 8 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue