Reduce docker image size
Closed this issue · 2 comments
Current docker image size is insane. It is 2.55 GB. Reduce that to below 1GB or less. Apply changes from this reference: https://hackernoon.com/tips-to-reduce-docker-image-sizes-876095da3b34
Size reduced to 561 MB
in docker hub (when uncompressed - 1.46GB
).
Miniconda
and FAISS
installations are taking a large part in docker image size (~350 MB
) - within this, a single package, Intel(R) Math Kernel Library
is taking 204.1 MB
.
CouchDB
installation is taking 210 MB
.
With below measures, we can try further reduce image size:
- Build
FAISS
from source. - Use
Alpine
base image ~3MB
as alternative toUbuntu
~27MB
.
Got rid of CouchDB instance from container. Now AquilaDB use Pouch Level backend as default document store. Added Docker env variable DB_HOST
to set external CouchDB as AquilaDB backend.
Pull request: https://github.com/a-mma/AquilaDB/pull/36