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
Docs: Update release notes
[nonrtric/plt/ranpm.git]
/
pm-rapp
/
Dockerfile
diff --git
a/pm-rapp/Dockerfile
b/pm-rapp/Dockerfile
index
1d138c5
..
1869c36
100644
(file)
--- a/
pm-rapp/Dockerfile
+++ b/
pm-rapp/Dockerfile
@@
-15,21
+15,20
@@
# ============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-rapp
RUN go build -o /pm-rapp
-#Replaced distroless image with ubuntu for debug purposes (seem to be cert problems with distroless image...?)
FROM gcr.io/distroless/base-debian11
FROM gcr.io/distroless/base-debian11
-#FROM ubuntu
+
WORKDIR /
## Copy from "build" stage
COPY --from=build /pm-rapp .
WORKDIR /
## Copy from "build" stage
COPY --from=build /pm-rapp .
-##Uncomment this when using distroless image
-USER nonroot:nonroot
ENTRYPOINT ["/pm-rapp"]
ENTRYPOINT ["/pm-rapp"]