CI: Add SonarCloud scan GHA workflow
[nonrtric/plt/ranpm.git] / https-server / Dockerfile
index 941acb2..7792de2 100644 (file)
 #  ============LICENSE_END=================================================
 #
 
-FROM golang:1.19-bullseye AS build
+FROM golang:1.20.3-buster AS build
+
 WORKDIR /app
-COPY go.mod .
-COPY go.sum .
-RUN go mod download
+
 COPY main.go .
+RUN go mod init main
+RUN go mod tidy
+
 RUN go build -o /pm-https-server
 
 #Replaced distroless image with ubuntu for debug purposes