Excessive Docker Image Size when Installing Checkov and Python3-pip #6774
Labels
contribution requested
This is a great feature idea, but we will need a contribution to get it added to Checkov.
Describe the feature
The feature request is focused on optimizing the size of the Docker image when installing Checkov in a debian:12.7-slim base image. Currently, when adding python3-pip and Checkov, the image size grows significantly, which might not be ideal for use cases where smaller images are preferred, such as in CI/CD pipelines (which is my case 😄, tbh). It would be beneficial to have a more lightweight installation process for Checkov, or some guidance on how to reduce the image size effectively.
Example
With checkov
Here is an example of Dockerfile :
With python3-pip and Checkov
Total ~600 MB
Without checkov
Additional context
None
Question
Is there any guidance or best practice to minimize the image size when installing Checkov and its dependencies, especially in resource-constrained environments? Any suggestions or recommendations would be highly appreciated.
The text was updated successfully, but these errors were encountered: