Skip to content

Commit cceb6e2

Browse files
Bump golang base image + using scratch base image for final image (#515)
--------- Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Ziv Nevo <[email protected]>
1 parent d867dba commit cceb6e2

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

Dockerfile

+2-3
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# FROM golang:1.22-alpine
2-
FROM golang@sha256:48eab5e3505d8c8b42a06fe5f1cf4c346c167cc6a89e772f31cb9e5c301dcf60
2+
FROM golang@sha256:161858498a61ce093c8e2bd704299bfb23e5bff79aef99b6c40bb9c6a43acf0f
33

44
RUN apk update && apk upgrade && apk --no-cache add make
55

@@ -11,8 +11,7 @@ COPY go.mod go.sum Makefile ./
1111

1212
RUN make
1313

14-
FROM registry.access.redhat.com/ubi9/ubi-minimal@sha256:1b6d711648229a1c987f39cfdfccaebe2bd92d0b5d8caa5dbaa5234a9278a0b2
15-
RUN microdnf --nodocs -y upgrade
14+
FROM scratch
1615

1716
WORKDIR /gitsecure
1817
COPY --from=0 go/src/github.ibm.com/gitsecure-net-top/bin/net-top .

0 commit comments

Comments
 (0)