ProvideQ / toolbox-server

Resources for the server that hosts the toolbox (Backend)
https://provideq.kit.edu
MIT License
1 stars 1 forks source link

build: reduce image size #15

Closed schweikart closed 1 year ago

schweikart commented 1 year ago

Fixes #14

schweikart commented 1 year ago

Replacing the full anaconda installation with a miniconda installation reduces the container size from 12.4GB to 6.24 GB:

$ docker images --filter "reference=provideq-toolbox-backend"
REPOSITORY                 TAG       IMAGE ID       CREATED         SIZE
provideq-toolbox-backend   latest    49e227d3e6a5   5 minutes ago   6.24GB

The largest remaining components are:

schweikart commented 1 year ago

Image size is now at 6.09 GB

schweikart commented 1 year ago

Image size is now at 3.64 GB. Largest remaining components:

schweikart commented 1 year ago

Image size is now at 3.34 GB. The remaining build steps that contribute > 100 MB to the image size are the following:

I think we can't get the image size much smaller without putting large amounts of efforts into it.