Skip to content

Commit

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

Expand Down

0 comments on commit 8e73319

Please sign in to comment.