ECMWFCode4Earth / vAirify

code repository for 2024 Code for Earth project #16
0 stars 0 forks source link

refactor dockerfiles to improve caching #82

Open lincent opened 3 weeks ago

lincent commented 3 weeks ago

The existing Dockerfiles can be improved, currently on code change the conda and poetry install processes get run every time

This is because the whole code base is copied everytime, any changes to files trigger a rebuild of each docker step.

Update the docker files to individually copy the conda and poetry environment files and run conda env create and poetry install, before finally copying the rest of the files to the build