forked from boyska/feedpanel
FIX templates in docker
This commit is contained in:
parent
c8e127872a
commit
7bcaf2a79a
2 changed files with 2 additions and 1 deletions
|
@ -9,4 +9,5 @@ FROM busybox
|
|||
WORKDIR /usr/bin/
|
||||
COPY --from=builder /go/bin/panelcli /usr/bin/
|
||||
COPY --from=builder /go/bin/userpanel /usr/bin/
|
||||
COPY panelui/res/ /go/src/git.lattuga.net/boyska/feedpanel/panelui/res/
|
||||
ENTRYPOINT ["./userpanel"]
|
||||
|
|
|
@ -24,6 +24,6 @@ func GetMux() *http.ServeMux {
|
|||
templateExecute(w, r, "home.html", templates,
|
||||
map[string]interface{}{"User": user})
|
||||
})
|
||||
mux.HandleFunc("/static", static.HTTPBox())
|
||||
mux.Handle("/static", http.FileServer(static.HTTPBox()))
|
||||
return mux
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue