Genivia / ugrep

NEW ugrep 6.5: a more powerful, ultra fast, user-friendly, compatible grep. Includes a TUI, Google-like Boolean search with AND/OR/NOT, fuzzy search, hexdumps, searches (nested) archives (zip, 7z, tar, pax, cpio), compressed files (gz, Z, bz2, lzma, xz, lz4, zstd, brotli), pdfs, docs, and more
https://ugrep.com
BSD 3-Clause "New" or "Revised" License
2.56k stars 109 forks source link

Optimize Dockerfiles: Reduce Image Sizes and Improve Build Process #408

Closed mmgordon82 closed 1 month ago

mmgordon82 commented 1 month ago

Refactor Dockerfiles to optimize build, reduce sizes, and improve practices

Dockerfile

Dockerfile-minimized

The original ubuntu image created by Dockerfile-minimized is about ~500MB. It appears that running apt-get remove doesn't remove the libraries themselves, thus creating an unnecessary large image. The new image is based on alpine, works exactly like Dockerfile and is 3.5x smaller (147MB on x64).

genivia-inc commented 1 month ago

Thank you for contributing! Is this PR ready for merging or should I wait?

mmgordon82 commented 1 month ago

It's ready. ✨