FIX: docker build with database and swagger api

This commit is contained in:
2024-09-10 22:39:53 +02:00
parent 0fac697cda
commit 0c0034644e
5 changed files with 209 additions and 11 deletions

2
Backend/.dockerignore Normal file
View File

@@ -0,0 +1,2 @@
db
Dockerfile

View File

@@ -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) {