Yikun opened a new pull request, #14:
URL: https://github.com/apache/spark-docker/pull/14

   ### What changes were proposed in this pull request?
   Remove unused apt lists cache and apply `./add-dockerfiles.sh 3.3.0`
   
   ### Why are the changes needed?
   Clean cache to reduce docker image size.
   
   This is also 
[recommanded](https://docs.docker.com/develop/develop-images/dockerfile_best-practices/#run)
 by docker community:
   
   ```
   $ docker run --user 0:0 -ti apache/spark bash
   root@5d1ca347279e:/opt/spark/work-dir# ls /var/lib/apt/lists/
   auxfiles                                                                  
lock
   deb.debian.org_debian_dists_bullseye-updates_InRelease                       
     partial
   deb.debian.org_debian_dists_bullseye-updates_main_binary-arm64_Packages.lz4  
security.debian.org_debian-security_dists_bullseye-security_InRelease
   deb.debian.org_debian_dists_bullseye_InRelease                               
     
security.debian.org_debian-security_dists_bullseye-security_main_binary-arm64_Packages.lz4
   deb.debian.org_debian_dists_bullseye_main_binary-arm64_Packages.lz4
   root@5d1ca347279e:/opt/spark/work-dir# du --max-depth=1 -h 
/var/lib/apt/lists/
   4.0K /var/lib/apt/lists/partial
   4.0K /var/lib/apt/lists/auxfiles
   17M  /var/lib/apt/lists/
   ```
   
   
   ### Does this PR introduce _any_ user-facing change?
   Yes in some level, image size is reduced.
   
   
   ### How was this patch tested?
   K8s CI passed
   


-- 
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]

Reply via email to