From c799cb84adb268552dd820b39d97fd6fd26bdc51 Mon Sep 17 00:00:00 2001 From: briskt <3172830+briskt@users.noreply.github.com> Date: Wed, 28 Aug 2024 16:14:21 +0800 Subject: [PATCH] sonarcloud recommendation --- Dockerfile | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index 943a7c0..d276ddb 100644 --- a/Dockerfile +++ b/Dockerfile @@ -6,11 +6,12 @@ RUN curl -o- -L https://slss.io/install | VERSION=3.7.5 bash && \ WORKDIR /src -RUN curl -sSfL https://raw.githubusercontent.com/cosmtrek/air/master/install.sh | sh -s -- -b $(go env GOPATH)/bin +RUN curl -sSfL --proto "=https" https://raw.githubusercontent.com/cosmtrek/air/master/install.sh | \ + sh -s -- -b $(go env GOPATH)/bin COPY ./ . RUN go get ./... EXPOSE 8080 -CMD ["air"] \ No newline at end of file +CMD ["air"]