AlexsLemonade / scpcaTools

BSD 3-Clause "New" or "Revised" License
1 stars 0 forks source link

Update python requirements and create slim docker image #270

Closed jashapiro closed 4 months ago

jashapiro commented 5 months ago

This draft is currently for testing a change to how we manage the docker images and python dependencies for images built from this repository.

I added a script to create different renv and requirements files, and dockerfiles that use those to build two versions of the images: One has everything we had before, and the other only the minimal requirements for scpcaTools

I build the requirements files using pip-tools from a smaller requirements.in file. The idea is that we can maintain the versioning in the smaller files and let the pip-compile handle the dependencies.

I considered using conda-lock here, but the overhead within the docker image seemed smaller by sticking with pip.

In the future this may also make building a GPU-based workflow a bit easier.

jashapiro commented 5 months ago

A few other notes as I got this ready for review:

jashapiro commented 5 months ago

Main questions for review: