Skip to content

Commit

Permalink
Update Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
jebinjeb authored Jul 8, 2023
1 parent 65529a7 commit df513ce
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions dockerfiles/agent/kubviz/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,14 @@ COPY ./ ./
RUN go mod download

# Build
RUN CGO_ENABLED=0 GOOS=linux GOARCH=amd64 GO111MODULE=on go build -a -o k8smetrics_agent agent/kubviz/*.go
RUN CGO_ENABLED=0 GOOS=linux GOARCH=amd64 GO111MODULE=on go build -a -o kubviz_agent agent/kubviz/*.go

# Use distroless as minimal base image to package the manager binary
# Refer to https://github.com/GoogleContainerTools/distroless for more details
FROM gcr.io/distroless/static:nonroot
WORKDIR /
COPY --from=builder /workspace/k8smetrics_agent .
COPY --from=builder /workspace/civo /etc/myapp/civo
COPY --from=builder /workspace/kubviz_agent .

USER 65532:65532

ENTRYPOINT ["/k8smetrics_agent"]
ENTRYPOINT ["/kubviz_agent"]

0 comments on commit df513ce

Please sign in to comment.