add make to docker
This commit is contained in:
parent
bb1fc8c3e2
commit
a155e6c99f
|
@ -6,7 +6,7 @@ WORKDIR /app
|
|||
COPY . .
|
||||
|
||||
# Build the Go app
|
||||
RUN CGO_ENABLED=0 GOOS=linux go build -o "./api" main.go
|
||||
RUN make build
|
||||
|
||||
############################
|
||||
# STEP 2 build a small image
|
||||
|
|
|
@ -26,7 +26,7 @@ help:
|
|||
@sed -n 's/^##//p' ${MAKEFILE_LIST} | column -t -s ':' | sed -e 's/^/ /'
|
||||
|
||||
build:
|
||||
go build -v $(LDFLAGS) -o api main.go
|
||||
CGO_ENABLED=0 GOOS=linux go build -v $(LDFLAGS) -o api main.go
|
||||
|
||||
doc:
|
||||
swag init -pd
|
||||
|
|
|
@ -54,7 +54,7 @@ func (c *Controller) ReadyCheck(ctx *fiber.Ctx) error {
|
|||
|
||||
// VersionResponse is the JSON model for the 200 OK response in `GET /api/v1/version`.
|
||||
type VersionResponse struct {
|
||||
BuildDate string `json:"buildDate"`
|
||||
BuildDate string `json:"build_date"`
|
||||
Build string `json:"build"`
|
||||
Branch string `json:"branch"`
|
||||
Machine string `json:"machine"`
|
||||
|
|
Loading…
Reference in New Issue