1
0
mirror of https://github.com/aquasecurity/kube-bench.git synced 2024-12-18 12:48:08 +00:00

fix: check_files_owner_in_dir.sh script not found error, fixes #1746 (#1755)

This commit is contained in:
Abubakr-Sadik Nii Nai Davis 2024-12-16 05:33:06 +00:00 committed by GitHub
parent e26eff019c
commit fbb674c450
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -40,13 +40,17 @@ RUN wget -q -O /etc/apk/keys/sgerrand.rsa.pub https://alpine-pkgs.sgerrand.com/s
RUN apk add gcompat RUN apk add gcompat
RUN apk add jq RUN apk add jq
ENV PATH=$PATH:/usr/local/mount-from-host/bin # Add bash for running helper scripts
RUN apk add bash
ENV PATH=$PATH:/usr/local/mount-from-host/bin:/go/bin
COPY --from=build /go/bin/kube-bench /usr/local/bin/kube-bench COPY --from=build /go/bin/kube-bench /usr/local/bin/kube-bench
COPY --from=build /usr/local/bin/kubectl /usr/local/bin/kubectl COPY --from=build /usr/local/bin/kubectl /usr/local/bin/kubectl
COPY entrypoint.sh . COPY entrypoint.sh .
COPY cfg/ cfg/ COPY cfg/ cfg/
COPY helper_scripts/check_files_owner_in_dir.sh /go/bin COPY helper_scripts/check_files_owner_in_dir.sh /go/bin/
RUN chmod a+x /go/bin/check_files_owner_in_dir.sh
ENTRYPOINT ["./entrypoint.sh"] ENTRYPOINT ["./entrypoint.sh"]
CMD ["install"] CMD ["install"]