Skip to content

Commit

Permalink
docker: symlink /kube-score to /usr/bin/kube-score
Browse files Browse the repository at this point in the history
  • Loading branch information
zegl committed Dec 12, 2022
1 parent 6c7c461 commit e30a088
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -63,11 +63,16 @@ RUN apk update && \

COPY --from=downloader /usr/bin/helm /usr/bin/helm
COPY --from=downloader /usr/bin/kustomize /usr/bin/kustomize
COPY --from=builder /usr/bin/kube-score /kube-score
COPY --from=builder /usr/bin/kube-score /usr/bin/kube-score

# Symlink to /kube-score for backwards compatibility (with kube-score v1.15.0 and earlier)
RUN ln -s /usr/bin/kube-score /kube-score

# Dry runs
RUN /kube-score version && helm version && kustomize version
RUN /kube-score version && \
/usr/bin/kube-score version && \
kube-score version && \
helm version && kustomize version

WORKDIR /project
ENTRYPOINT ["/kube-score"]

0 comments on commit e30a088

Please sign in to comment.