Added directory structure for routing

This commit is contained in:
2023-07-22 14:19:12 +02:00
parent 2fba1066f8
commit 416eb415a9
7 changed files with 69 additions and 19 deletions

View File

@ -10,7 +10,7 @@ COPY . .
RUN go mod download
# Builds the application as a staticly linked one, to allow it to run on alpine
RUN CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -a -installsuffix cgo -o app cmd/{{cookiecutter.project_name}}.go
RUN CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -a -installsuffix cgo -o app cmd/{{cookiecutter.project_name}}/main.go
# Moving the binary to the 'final Image' to make it smaller