ansys / pymechanical

Pythonic interface to Ansys Mechanical
https://mechanical.docs.pyansys.com/
MIT License
29 stars 13 forks source link

MAINT: Delete the apt-get lists after installing packages #750

Closed MaxJPRey closed 4 weeks ago

MaxJPRey commented 1 month ago

Cleaning up the apt cache and removing /var/lib/apt/lists helps keep the image size down. Since the RUN statement starts with apt-get update, the package cache will always be refreshed prior to apt-get install.

Clean up must be performed in the same RUN step, otherwise it will affect image size.

codecov[bot] commented 1 month ago

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 80.85%. Comparing base (fb2512b) to head (1b0f8c9).

:exclamation: Current head 1b0f8c9 differs from pull request most recent head 49546e9

Please upload reports for the commit 49546e9 to get more accurate results.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #750 +/- ## ========================================== - Coverage 81.63% 80.85% -0.78% ========================================== Files 32 32 Lines 1982 1980 -2 ========================================== - Hits 1618 1601 -17 - Misses 364 379 +15 ```
dipinknair commented 4 weeks ago

@MaxJPRey . I think this is added to reduce the image size. Pinging @samigithub2022 for review.

RobPasMue commented 4 weeks ago

@dipinknair - @MaxJPRey's change will precisely do that, reduce the image size