md/docker/latest/server/main.go
Libin YANG a9fa4c2824
Some checks failed
Build and Deploy / build-and-deploy (push) Has been skipped
Build and Push Docker Images / build (push) Failing after 1m0s
feat: build and deploy docker image (#495)
2024-12-23 19:59:59 +08:00

22 lines
310 B
Go

package main
import (
"embed"
"io/fs"
"log"
"net/http"
)
//go:embed assets
var assets embed.FS
func main() {
mutex := http.NewServeMux()
md, _ := fs.Sub(assets, "assets")
mutex.Handle("/", http.FileServer(http.FS(md)))
err := http.ListenAndServe(":80", mutex)
if err != nil {
log.Fatal(err)
}
}