add docker and readme (#1407)

Signed-off-by: zzjin <tczzjin@gmail.com>
This commit is contained in:
zzjin
2022-07-27 16:06:40 +08:00
committed by GitHub
parent bf60f4f000
commit 4a6350f039
7 changed files with 93 additions and 57 deletions
+1 -2
View File
@@ -18,7 +18,6 @@ import (
"net/http"
"github.com/emicklei/go-restful"
"github.com/labring/sealos/pkg/auth/utils"
"github.com/labring/sealos/pkg/utils/logger"
)
@@ -32,7 +31,7 @@ func GoRestful(registerFunc func(*restful.WebService), addr string) error {
container.Add(webService)
//cors
utils.Cors(container)
Cors(container)
server := &http.Server{Addr: addr, Handler: container}
logger.Info("start listening on addr", addr)