-
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
e0d15f7
commit 8e73319
Showing
1 changed file
with
2 additions
and
5 deletions.
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:latest as builder | ||
FROM golang:1.23.4 as builder | ||
|
||
ARG GIT_COMMIT | ||
ENV GIT_COMMIT=$GIT_COMMIT | ||
|
@@ -12,12 +12,9 @@ RUN go mod download | |
|
||
COPY . . | ||
|
||
RUN go get github.com/swaggo/swag/[email protected] | ||
RUN go get github.com/swaggo/swag/cmd/[email protected] | ||
RUN go install 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 . | ||
|
||
|