comparison Docker/Dockerfile @ 0:38333676a029 draft default tip

planemo upload for repository https://github.com/goeckslab/gleam.git commit f57ec1ad637e8299db265ee08be0fa9d4d829b93
author goeckslab
date Thu, 19 Jun 2025 23:33:23 +0000
parents
children
comparison
equal deleted inserted replaced
-1:000000000000 0:38333676a029
1 # Use a lightweight Python 3.9 base image
2 FROM python:3.9-slim
3
4 # Install system dependencies for OpenCV and other libraries in one layer
5 RUN apt-get update && apt-get install -y \
6 libgl1-mesa-glx \
7 libglib2.0-0 \
8 && rm -rf /var/lib/apt/lists/*
9
10 # Upgrade pip to the latest version
11 RUN pip install --upgrade pip
12
13 # Install PyTorch and torchvision CPU-only versions
14 RUN pip install --no-cache-dir torch==2.0.0 torchvision==0.15.1 \
15 -f https://download.pytorch.org/whl/cpu/torch_stable.html
16
17 # Install NumPy with a version compatible with PyTorch 2.0.0
18 RUN pip install --no-cache-dir numpy==1.24.4
19
20 # Install remaining Python dependencies
21 RUN pip install --no-cache-dir Pillow opencv-python pandas fastparquet argparse logging multiprocessing