1
0
Fork 0
forked from boyska/feedpanel

FIX templates in docker

This commit is contained in:
boyska 2018-11-13 14:50:03 +01:00
parent c8e127872a
commit 7bcaf2a79a
2 changed files with 2 additions and 1 deletions

View file

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

View file

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