Skip to content

MaayanLab/docker-base

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Ma'ayan Lab Base Docker Images

When dealing with one programming language, docker works well to provide base images like (python, r, or nodejs), but it frequently becomes a mess when you want to two or more of these. E.g. you can install python on a nodejs image or vice versa, but in both cases you lose the ability to specify the version for the other.

To address this, our base image provides a means to explicitly specify the version of:

  • node (installed with the help of nvm)
  • R (installed with the help of rig)
  • python (installed with the help of uv)

If you don't specify it's version, it will not be installed.

Usage

node, python & R

FROM maayanlab/base
RUN NODE_VERSION=20 PYTHON_VERSION=3.11 R_VERSION=4.5.3 /install.sh
CMD ["bash"]

just python

FROM maayanlab/base
RUN PYTHON_VERSION=3.11 /install.sh
CMD ["python"]

Future Directions

  • maybe it's possible to uninstall nvm/uv/rig after install for a smaller image
  • maybe it's possible to isolate node/python/r completely in their respective directory so that they can be installed in parallel with docker for better caching

About

Ma'ayan Lab Base Docker Images

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors