FIX: docker build with database and swagger api
This commit is contained in:
2
Backend/.dockerignore
Normal file
2
Backend/.dockerignore
Normal file
@@ -0,0 +1,2 @@
|
||||
db
|
||||
Dockerfile
|
||||
@@ -25,7 +25,7 @@ func main() {
|
||||
http.HandleFunc("/time", timeHandler)
|
||||
|
||||
fmt.Printf("Server is running at http://localhost:8000 exposed to port %s\n", getEnv("EXPOSED_PORT", "8000"))
|
||||
log.Fatal(http.ListenAndServe(":8000", nil))
|
||||
log.Fatal(http.ListenAndServe(":8080", nil))
|
||||
}
|
||||
|
||||
func timeCreateHandler(w http.ResponseWriter, r *http.Request) {
|
||||
|
||||
Reference in New Issue
Block a user