From 8e73319143cb502e392a94dcc68f871f4944fa84 Mon Sep 17 00:00:00 2001 From: Acho Arnold Date: Fri, 13 Dec 2024 21:31:59 +0200 Subject: [PATCH] Fix dockerfile --- api/Dockerfile | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/api/Dockerfile b/api/Dockerfile index 5a0c892..ec713d8 100644 --- a/api/Dockerfile +++ b/api/Dockerfile @@ -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/gen@v1.8.7 -RUN go get github.com/swaggo/swag/cmd/swag@v1.8.7 -RUN go install github.com/swaggo/swag/cmd/swag@v1.8.7 +RUN go install github.com/swaggo/swag/cmd/swag@v1.8.7 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 .