Refactor Dockerfiles to optimize build, reduce sizes, and improve practices
Dockerfile
Set ugrep as the ENTRYPOINT for direct usage without starting bash.
Clarified comments with examples and use-cases.
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).
Replaced ubuntu base image (~500MB) with multi-build alpine (147MB).
Addressed issue with apt-get remove not reducing image size.
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).ubuntu
base image (~500MB) with multi-buildalpine
(147MB).apt-get remove
not reducing image size.