Docker image for general-purpose Python utilities in Fred Hutch OCDO's WILDS
1.1K
This directory contains Docker images for python-utils, a lean general-purpose Python environment that bundles a handful of ubiquitous scientific computing and bioinformatics packages on top of a slim Python base.
latest ( Dockerfile | Vulnerability Report )0.1.0 ( Dockerfile | Vulnerability Report )These Docker images are built from the python:3.12-slim base image and include:
The images are designed to be a lean, general-purpose Python environment for WILDS WDL modules and analyses that need common scientific/bioinformatics packages without the heavy footprint of deep learning frameworks. For GPU-accelerated deep learning workflows, see the python-dl image instead.
This image simply bundles several widely used open-source Python packages. If you use them in your research, please cite the original authors:
docker pull getwilds/python-utils:latest
# or
docker pull getwilds/python-utils:0.1.0
# Alternatively, pull from GitHub Container Registry
docker pull ghcr.io/getwilds/python-utils:latest
apptainer pull docker://getwilds/python-utils:latest
# or
apptainer pull docker://getwilds/python-utils:0.1.0
# Alternatively, pull from GitHub Container Registry
apptainer pull docker://ghcr.io/getwilds/python-utils:latest
# Run a Python analysis script with Docker
docker run --rm -v /path/to/data:/data getwilds/python-utils:latest \
python /data/analysis.py --input /data/input.csv --output /data/results.csv
# Drop into an interactive Python shell
docker run --rm -it -v /path/to/data:/data getwilds/python-utils:latest python
# Inspect a BAM file with pysam
docker run --rm -v /path/to/data:/data getwilds/python-utils:latest \
python -c "import pysam; bam = pysam.AlignmentFile('/data/sample.bam', 'rb'); print(bam.header)"
# Run a Python script with Apptainer
apptainer run --bind /path/to/data:/data docker://getwilds/python-utils:latest \
python /data/analysis.py --input /data/input.csv --output /data/results.csv
# ... or a local SIF file via Apptainer
apptainer run --bind /path/to/data:/data python-utils_latest.sif \
python /data/analysis.py --input /data/input.csv --output /data/results.csv
The Dockerfile follows these main steps:
python:3.12-slim as the base image for a minimal Python environmentapt-cache policy, then cleans up /var/lib/apt/lists--no-cache-dir/data as the working directory for analysisThese images are regularly scanned for vulnerabilities using Docker Scout. However, due to the nature of bioinformatics software and their dependencies, some Docker images may contain components with known vulnerabilities (CVEs).
Use at your own risk: While we strive to minimize security issues, these images are primarily designed for research and analytical workflows in controlled environments.
For the latest security information about this image, please check the CVEs_*.md files in this directory, which are automatically updated through our GitHub Actions workflow. If a particular vulnerability is of concern, please file an issue in the GitHub repo citing which CVE you would like to be addressed.
These Dockerfiles are maintained in the WILDS Docker Library repository.
Content type
Image
Digest
sha256:7d48a811f…
Size
211.1 MB
Last updated
5 months ago
docker pull getwilds/python-utils