korbit-ai[bot] commented on code in PR #34821:
URL: https://github.com/apache/superset/pull/34821#discussion_r2295248787
##########
docker/apt-install.sh:
##########
@@ -42,7 +42,7 @@ echo -e "${GREEN}Installing packages: $@${RESET}"
apt-get install -yqq --no-install-recommends "$@"
echo -e "${GREEN}Autoremoving unnecessary packages...${RESET}"
-apt-get autoremove -y
+apt-get autoremove -yqq --purge
Review Comment:
### Risky purge of package configurations <sub></sub>
<details>
<summary>Tell me more</summary>
###### What is the issue?
The --purge flag in autoremove might remove configuration files that could
be needed by other packages or for system recovery.
###### Why this matters
Purging configuration files during automated cleanup in a Docker build
context could lead to unintended side effects if any dependent packages rely on
shared configurations.
###### Suggested change ∙ *Feature Preview*
Remove the --purge flag from the autoremove command to preserve system
configurations:
```bash
apt-get autoremove -yqq
```
###### Provide feedback to improve future suggestions
[](https://app.korbit.ai/feedback/aa91ff46-6083-4491-9416-b83dd1994b51/78b2d4d8-5bc2-4f6d-bb15-ec7ea755e601/upvote)
[](https://app.korbit.ai/feedback/aa91ff46-6083-4491-9416-b83dd1994b51/78b2d4d8-5bc2-4f6d-bb15-ec7ea755e601?what_not_true=true)
[](https://app.korbit.ai/feedback/aa91ff46-6083-4491-9416-b83dd1994b51/78b2d4d8-5bc2-4f6d-bb15-ec7ea755e601?what_out_of_scope=true)
[](https://app.korbit.ai/feedback/aa91ff46-6083-4491-9416-b83dd1994b51/78b2d4d8-5bc2-4f6d-bb15-ec7ea755e601?what_not_in_standard=true)
[](https://app.korbit.ai/feedback/aa91ff46-6083-4491-9416-b83dd1994b51/78b2d4d8-5bc2-4f6d-bb15-ec7ea755e601)
</details>
<sub>
💬 Looking for more details? Reply to this comment to chat with Korbit.
</sub>
<!--- korbi internal id:3d10e6c6-605b-464e-b38a-67ae3389c7cd -->
[](3d10e6c6-605b-464e-b38a-67ae3389c7cd)
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]