Skip to content

Commit

Permalink
Fix go get command
Browse files Browse the repository at this point in the history
  • Loading branch information
AchoArnold committed Dec 13, 2024
1 parent 013ba27 commit e0d15f7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion api/Dockerfile
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
Expand All @@ -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 .

Expand Down

0 comments on commit e0d15f7

Please sign in to comment.