mfhepp / py4docker

Template for running Python 3.x shell scripts and notebooks in a Docker container for isolation, security, and portability
MIT License
2 stars 0 forks source link

Add mechanism for version pinning / lock file #11

Closed mfhepp closed 8 months ago

mfhepp commented 8 months ago

It would be good to create a lock file with the exact versions of installed Python packages in the build process, see section in the micromamba docs:

docker run --rm -v "$(pwd):/tmp" \
   mambaorg/micromamba:1.5.6 /bin/bash -c "\
     micromamba create --yes --name new_env --file env.yaml \
     && micromamba env export --name new_env --explicit" > env.lock
mfhepp commented 8 months ago

Done via #14