Skip to content

Commit

Permalink
update dockerfile - use: from scratch (#163)
Browse files Browse the repository at this point in the history
Signed-off-by: adisos <adisos@il.ibm.com>
  • Loading branch information
adisos authored Jan 28, 2025
1 parent 6161d97 commit 6b4abaf
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,9 @@ COPY go.mod go.sum Makefile ./
RUN make mod
RUN make build

FROM registry.access.redhat.com/ubi9/ubi-minimal@sha256:b87097994ed62fbf1de70bc75debe8dacf3ea6e00dd577d74503ef66452c59d6
RUN microdnf --nodocs -y upgrade
FROM scratch

WORKDIR /np-guard
COPY --from=0 /go/src/github.com/vmware-analyzer/bin/nsxanalyzer .

ENTRYPOINT ["/np-guard/nsxanalyzer"]
ENTRYPOINT ["/np-guard/nsxanalyzer"]

0 comments on commit 6b4abaf

Please sign in to comment.