sciapp / sampledb

Sample and Measurement Metadata Database
https://scientific-it-systems.iffgit.fz-juelich.de/SampleDB/
MIT License
21 stars 11 forks source link

Improve docker image size by using multi-stage build #58

Closed NicolasCARPi closed 8 months ago

NicolasCARPi commented 8 months ago

Currently the image is 1.3 GB, this change will bring it down to 972 MB, saving bandwidth and disk space to all.

The venv is built on an image and copied and used on another. This saves us from installing gcc and git in the final image.

Some env vars were added:

Note: I've tested it, it works fine as far as I can tell.