From 4fcf84ce48953ce55080935c8c8b6cd1deec1ba4 Mon Sep 17 00:00:00 2001 From: pb Date: Thu, 15 Feb 2024 11:56:25 +0100 Subject: [PATCH] light dockerfile --- Dockerfile | 5 ----- 1 file changed, 5 deletions(-) diff --git a/Dockerfile b/Dockerfile index 7150caf..01190de 100644 --- a/Dockerfile +++ b/Dockerfile @@ -9,14 +9,9 @@ RUN go get github.com/beego/bee/v2 && go install github.com/beego/bee/v2@master # Generating the swagger RUN timeout 20 bee run -gendoc=true -downdoc=true -runmode=dev || : -RUN ls swagger/ - RUN sed -i 's/http:\/\/127.0.0.1:8080\/swagger\/swagger.json/swagger.json/g' swagger/index.html RUN sed -i 's/https:\/\/petstore.swagger.io\/v2\/swagger.json/swagger.json/g' swagger/index.html -RUN echo '------------------------------------------------------------' -RUN cat 'swagger/index.html' -RUN echo '------------------------------------------------------------' RUN CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -ldflags="-w -s" .