Mercurial > repos > goeckslab > tiling_pyhist
comparison Docker/Dockerfile @ 0:c051e9688932 draft default tip
planemo upload for repository https://github.com/goeckslab/gleam.git commit 11356473f09dd54d86af28b74bd9ed097d07ca04
| author | goeckslab |
|---|---|
| date | Thu, 03 Jul 2025 23:48:01 +0000 |
| parents | |
| children |
comparison
equal
deleted
inserted
replaced
| -1:000000000000 | 0:c051e9688932 |
|---|---|
| 1 FROM debian:stable | |
| 2 | |
| 3 LABEL maintainer="Paulo Lyra" \ | |
| 4 version="1.0.0" \ | |
| 5 description="Docker image for PyHIST Galaxy tool" | |
| 6 | |
| 7 # Install necessary tools | |
| 8 RUN export DEBIAN_FRONTEND=noninteractive && \ | |
| 9 apt-get update --fix-missing -qq && \ | |
| 10 apt-get install -y -q \ | |
| 11 build-essential \ | |
| 12 libgl1-mesa-glx \ | |
| 13 python3 \ | |
| 14 python3-pip \ | |
| 15 python3-venv \ | |
| 16 openslide-tools \ | |
| 17 python3-openslide \ | |
| 18 libmagic-dev \ | |
| 19 git && \ | |
| 20 apt-get clean && \ | |
| 21 rm -rf /var/lib/apt/lists/* | |
| 22 | |
| 23 # Set working directory | |
| 24 WORKDIR /pyhist | |
| 25 | |
| 26 # Clone PyHIST repository | |
| 27 RUN git clone https://github.com/manuel-munoz-aguirre/PyHIST.git . && \ | |
| 28 git checkout master | |
| 29 | |
| 30 # Create and activate virtual environment, then install Python packages | |
| 31 RUN python3 -m venv /pyhist/venv && \ | |
| 32 /pyhist/venv/bin/pip install --upgrade pip && \ | |
| 33 /pyhist/venv/bin/pip install \ | |
| 34 pandas \ | |
| 35 opencv-python \ | |
| 36 numpy \ | |
| 37 Pillow \ | |
| 38 python-magic \ | |
| 39 openslide-python \ | |
| 40 psutil | |
| 41 | |
| 42 # Compile segmentation algorithm | |
| 43 RUN cd src/graph_segmentation/ && \ | |
| 44 make && \ | |
| 45 chmod 755 segment | |
| 46 | |
| 47 # Add venv binaries to PATH | |
| 48 ENV PATH="/pyhist/venv/bin:$PATH" | |
| 49 | |
| 50 # Make pyhist.py globally executable and accessible | |
| 51 RUN chmod +x /pyhist/pyhist.py && \ | |
| 52 ln -s /pyhist/pyhist.py /usr/local/bin/pyhist | |
| 53 | |
| 54 # Ensure src directory is in PYTHONPATH for module imports | |
| 55 ENV PYTHONPATH="/pyhist:$PYTHONPATH" | |
| 56 | |
| 57 # Set default command (optional, for debugging) | |
| 58 CMD ["/bin/bash"] |
