-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
013ba27
commit e0d15f7
Showing
1 changed file
with
2 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
FROM golang as builder | ||
FROM golang:latest as builder | ||
|
||
ARG GIT_COMMIT | ||
ENV GIT_COMMIT=$GIT_COMMIT | ||
|
@@ -17,6 +17,7 @@ RUN go get github.com/swaggo/swag/cmd/[email protected] | |
RUN go install github.com/swaggo/swag/cmd/[email protected] | ||
|
||
RUN swag init | ||
RUN go get ./... | ||
|
||
RUN CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -ldflags "-X main.Version=$GIT_COMMIT" -o /bin/httpmock . | ||
|
||
|