Skip to content

Commit

Permalink
docker file issue
Browse files Browse the repository at this point in the history
build not working
  • Loading branch information
g4ze committed Jun 16, 2023
1 parent d882b49 commit bd286c3
Show file tree
Hide file tree
Showing 7 changed files with 4 additions and 4 deletions.
2 changes: 2 additions & 0 deletions API/router/router.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ package router

import (
"controller"
"fmt"
"log"
"net/http"
"time"
Expand All @@ -11,6 +12,7 @@ import (

func Route() {
router := mux.NewRouter()
fmt.Println("Route was hit")
router.HandleFunc("/catto-read-{id}", controller.ReadOne).Methods("GET")
router.HandleFunc("/catto-read-all", controller.ReadOne).Methods("GET")
router.HandleFunc("/catto-read-{ids}", controller.ReadOne).Methods("GET")
Expand Down
2 changes: 1 addition & 1 deletion API/router/variables.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,5 @@ var (
)

func init() {
port = "8080"
port = "8000"
}
1 change: 0 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,4 @@ ADD . /app
WORKDIR /app
RUN go mod download
RUN go build -o main
EXPOSE 8080
CMD ["/app/main"]
Binary file modified cattodb
Binary file not shown.
2 changes: 0 additions & 2 deletions go.sum

This file was deleted.

Binary file modified main
Binary file not shown.
1 change: 1 addition & 0 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import (

func main() {
fmt.Println("welcome to cattoDB")
fmt.Print("brrrrrr")
// // fmt.Println(purr.Data)
// fmt.Println(purr.ReadOne("ajsonfile" + ".json"))
// cattobrain.Meow()
Expand Down

0 comments on commit bd286c3

Please sign in to comment.