Code Review
/
nonrtric
/
plt
/
ranpm.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
CI: Add SonarCloud scan GHA workflow
[nonrtric/plt/ranpm.git]
/
https-server
/
Dockerfile
diff --git
a/https-server/Dockerfile
b/https-server/Dockerfile
index
941acb2
..
7792de2
100644
(file)
--- a/
https-server/Dockerfile
+++ b/
https-server/Dockerfile
@@
-15,12
+15,14
@@
# ============LICENSE_END=================================================
#
# ============LICENSE_END=================================================
#
-FROM golang:1.19-bullseye AS build
+FROM golang:1.20.3-buster AS build
+
WORKDIR /app
WORKDIR /app
-COPY go.mod .
-COPY go.sum .
-RUN go mod download
+
COPY main.go .
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
RUN go build -o /pm-https-server
#Replaced distroless image with ubuntu for debug purposes