Closed slashben closed 10 months ago
PR Description updated to latest commit (https://github.com/armosec/kubecop/commit/e121d2832f11b5ece412e44fc5a06ff7ec8d0017)
netcat
utility was missing in the final Docker image for ClamAV. The fix involves moving the netcat
installation command to the clamav/clamav-debian
image stage, ensuring its availability in the final image.๐ก General suggestions: The changes made in this PR are clear and straightforward. However, it would be beneficial to include a test case that verifies the availability of netcat
in the final Docker image to prevent similar issues in the future.
relevant file | resources/clamav/Dockerfile |
suggestion | **Consider using a specific version of `netcat` to ensure consistent behavior across different environments. You can do this by specifying the version number in the `apt-get install` command. For example, `apt-get install -y netcat=1.10-41.1` [medium]** |
relevant line | RUN apt-get update && apt-get install -y netcat |
Type
Bug fix
Description
This PR addresses a bug in the Dockerfile for the ClamAV image. The main changes include:
netcat
was initially done in theubuntu
image, which was not persisted to the finalclamav/clamav-debian
image.netcat
installation command has been moved to theclamav/clamav-debian
image, ensuring thatnetcat
is available in the final image.Changes walkthrough
Dockerfile
resources/clamav/Dockerfile
**The installation of `netcat` has been moved from the initial
`ubuntu` image to the final `clamav/clamav-debian` image in
the Dockerfile.**