|
| 1 | +FROM ubuntu:22.04 |
| 2 | + |
| 3 | +LABEL base_image="ubuntu:22.04" |
| 4 | +LABEL version="1" |
| 5 | +LABEL software="cellpose" |
| 6 | +LABEL software.version="4.0.7" |
| 7 | +LABEL about.summary="A generalist algorithm for cell and nucleus segmentation." |
| 8 | +LABEL about.home="https://github.com/MouseLand/cellpose" |
| 9 | +LABEL about.license="BSD-3-Clause" |
| 10 | +LABEL about.license_file="https://github.com/MouseLand/cellpose/blob/main/LICENSE" |
| 11 | +LABEL about.documentation="https://cellpose.readthedocs.io/en/latest/" |
| 12 | +LABEL extra.identifiers.biotools=cellpose |
| 13 | + |
| 14 | +MAINTAINER Yi Sun < [email protected]> |
| 15 | +MAINTAINER Florian Wuennemann < [email protected]> |
| 16 | + |
| 17 | +ARG DEBIAN_FRONTEND="noninteractive" |
| 18 | +ARG CELLPOSE_VERSION="4.0.7" |
| 19 | + |
| 20 | +ENV LANG en_US.UTF-8 \ |
| 21 | + LC_ALL en_US.UTF-8 \ |
| 22 | + LANGUAGE en_US:en |
| 23 | + |
| 24 | +ENV MPLCONFIGDIR=/tmp/mpl_cache |
| 25 | +ENV NUMBA_CACHE_DIR=/tmp/numba_cache |
| 26 | +ENV CELLPOSE_LOCAL_MODELS_PATH=/tmp/cellpose_models |
| 27 | +ENV QT_PLUGIN_PATH=/usr/local/lib/python3.10/dist-packages/PyQt6/Qt6/plugins/platforms/ |
| 28 | + |
| 29 | +RUN apt-get update -qq && \ |
| 30 | + apt-get install -y -q --no-install-recommends \ |
| 31 | + gcc \ |
| 32 | + python3-dev \ |
| 33 | + python3-pip \ |
| 34 | + python3-wheel \ |
| 35 | + libblas-dev \ |
| 36 | + liblapack-dev \ |
| 37 | + libatlas-base-dev \ |
| 38 | + libgl1 \ |
| 39 | + mesa-utils \ |
| 40 | + libxcb-cursor0 \ |
| 41 | + libxext6 \ |
| 42 | + libxrender1 \ |
| 43 | + libxcb1 \ |
| 44 | + libgl1-mesa-glx \ |
| 45 | + libxcb-xinerama0 \ |
| 46 | + gfortran \ |
| 47 | + apt-utils \ |
| 48 | + bzip2 \ |
| 49 | + ca-certificates \ |
| 50 | + curl \ |
| 51 | + locales \ |
| 52 | + gnupg \ |
| 53 | + libfontconfig1 \ |
| 54 | + libxkbcommon0 \ |
| 55 | + libxkbcommon-x11-0 \ |
| 56 | + libxcb-icccm4 \ |
| 57 | + libxcb-keysyms1 \ |
| 58 | + libxcb-shape0 \ |
| 59 | + software-properties-common \ |
| 60 | + unzip && \ |
| 61 | + apt-get clean && \ |
| 62 | + rm -rf /var/lib/apt/lists/* |
| 63 | + |
| 64 | +RUN sed -i '/en_US.UTF-8/s/^# //g' /etc/locale.gen && \ |
| 65 | + locale-gen |
| 66 | + |
| 67 | +RUN pip install --no-cache-dir -U pip \ |
| 68 | + numpy \ |
| 69 | + numba>=0.43.1 \ |
| 70 | + wheel \ |
| 71 | + scipy \ |
| 72 | + pyqt6 \ |
| 73 | + pyqt6-qt6 \ |
| 74 | + torch>=1.6 \ |
| 75 | + opencv-python-headless \ |
| 76 | + pyqtgraph>=0.11.0rc0 \ |
| 77 | + natsort \ |
| 78 | + scikit-image matplotlib \ |
| 79 | + scikit-learn \ |
| 80 | + tqdm \ |
| 81 | + tifffile \ |
| 82 | + fastremap \ |
| 83 | + 'cellpose[gui]'==$CELLPOSE_VERSION |
0 commit comments