Add this suggestion to a batch that can be applied as a single commit.
  This suggestion is invalid because no changes were made to the code.
  Suggestions cannot be applied while the pull request is closed.
  Suggestions cannot be applied while viewing a subset of changes.
  Only one suggestion per line can be applied in a batch.
  Add this suggestion to a batch that can be applied as a single commit.
  Applying suggestions on deleted lines is not supported.
  You must change the existing code in this line in order to create a valid suggestion.
  Outdated suggestions cannot be applied.
  This suggestion has been applied or marked resolved.
  Suggestions cannot be applied from pending reviews.
  Suggestions cannot be applied on multi-line comments.
  Suggestions cannot be applied while the pull request is queued to merge.
  Suggestion cannot be applied right now. Please check back later.
  
    
  
    
These are some changes that reduce the image size and make the build faster
dnf:
--nodocs doesn't install documentation files, can be be checked with e.g rpm -qd unzip
Using install_weak_deps=0 installs about 110 less packages, can be checked with dnf install
clean all will remove package install cache, I also added in a rm -rf for the "best practices"
pip:
--no-cache-dir kinda self-explanatory
-U will upgrade the package if there's a new release
Overall the difference in the image size is 2.58GB without, versus 2.06GB with the new flags
I also corrected this
=> WARN: FromAsCasing: 'as' and 'FROM' keywords' casing do not match (line 1)Of course I ran a basic test to make sure that it still works