add and test dockerfile build and run

This commit is contained in:
2024-11-19 17:36:24 -06:00
parent f19645d768
commit 5a2a0ccd9f
5 changed files with 63 additions and 2 deletions

View File

@@ -40,7 +40,7 @@ func main() {
mux.Handle(core.RefreshToken, &handler)
mux.Handle(core.ResetNKode, &handler)
fmt.Println("Running on localhost:8080...")
log.Fatal(http.ListenAndServe("localhost:8080", corsMiddleware(mux)))
log.Fatal(http.ListenAndServe(":8080", corsMiddleware(mux)))
}
func corsMiddleware(next http.Handler) http.Handler {