Missing Zypper Non-interactive Switch
- Query id: 45e1fca5-f90e-465d-825f-c2cb63fa3944
- Query name: Missing Zypper Non-interactive Switch
- Platform: Dockerfile
- Severity: Medium
- Category: Supply-Chain
- URL: Github
Description¶
Omitting the non-interactive switch causes the command to fail during the build process, because zypper would expect manual input
Documentation
Code samples¶
Code samples with security vulnerabilities¶
Postitive test num. 1 - dockerfile file
FROM busybox:1.0
RUN zypper install httpd && zypper clean
HEALTHCHECK CMD curl --fail http://localhost:3000 || exit 1