mirror of
https://github.com/amir20/dozzle.git
synced 2025-12-21 13:23:07 +01:00
Adds support for multi-arch (#306)
* Uses experimental docker multi-arch * Fixes dockerfile to build node and golang images * Adds ldflags * Adds buildx to push.yml * Adds docker login * Adds login in again * Login using run * Login using run * Adds Makefile * Updates actions * Fixes push
This commit is contained in:
5
main.go
5
main.go
@@ -138,7 +138,10 @@ func (h *handler) index(w http.ResponseWriter, req *http.Request) {
|
||||
if h.box.Has(req.URL.Path) && req.URL.Path != "" && req.URL.Path != "/" {
|
||||
fileServer.ServeHTTP(w, req)
|
||||
} else {
|
||||
text, _ := h.box.FindString("index.html")
|
||||
text, err := h.box.FindString("index.html")
|
||||
if err != nil {
|
||||
panic(err)
|
||||
}
|
||||
text = strings.Replace(text, "__BASE__", "{{ .Base }}", -1)
|
||||
tmpl, err := template.New("index.html").Parse(text)
|
||||
if err != nil {
|
||||
|
||||
Reference in New Issue
Block a user