Skip to content

Commit e30a088

Browse files
committed
docker: symlink /kube-score to /usr/bin/kube-score
1 parent 6c7c461 commit e30a088

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

Dockerfile

+7-2
Original file line numberDiff line numberDiff line change
@@ -63,11 +63,16 @@ RUN apk update && \
6363

6464
COPY --from=downloader /usr/bin/helm /usr/bin/helm
6565
COPY --from=downloader /usr/bin/kustomize /usr/bin/kustomize
66-
COPY --from=builder /usr/bin/kube-score /kube-score
6766
COPY --from=builder /usr/bin/kube-score /usr/bin/kube-score
67+
68+
# Symlink to /kube-score for backwards compatibility (with kube-score v1.15.0 and earlier)
69+
RUN ln -s /usr/bin/kube-score /kube-score
6870

6971
# Dry runs
70-
RUN /kube-score version && helm version && kustomize version
72+
RUN /kube-score version && \
73+
/usr/bin/kube-score version && \
74+
kube-score version && \
75+
helm version && kustomize version
7176

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

0 commit comments

Comments
 (0)