diff --git a/Dockerfile b/Dockerfile index 0861108..137b1ce 100644 --- a/Dockerfile +++ b/Dockerfile @@ -21,29 +21,9 @@ RUN apt-get update && apt-get install -y --no-install-recommends \ WORKDIR /app -# Install Python packages via pip +# Install Python packages via pip (liste unique : requirements.txt) COPY requirements.txt . -RUN pip3 install --no-cache-dir \ - numpy \ - matplotlib \ - whitebox \ - rasterio \ - 'laspy[lazrs]' \ - lazrs \ - scikit-image \ - scikit-learn \ - scipy \ - tqdm \ - Pillow \ - pytest \ - numba \ - rio-cogeo \ - titiler.core \ - fastapi \ - uvicorn \ - piexif \ - pillow-avif-plugin \ - cmcrameri +RUN pip3 install --no-cache-dir -r requirements.txt # CuPy on CUDA 12.9 with JIT compilation (CUPY_CUDA_COMPILE_WITH_CACHE=1). # JIT allows CuPy to compile kernels at runtime for GPU architectures not in diff --git a/requirements.txt b/requirements.txt index 4dfe653..bb926e8 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,10 +1,22 @@ -pdal>=3.0 +# Dépendances Python de l'image complète (Dockerfile) — installées via +# `pip install --no-cache-dir -r requirements.txt`. +# PDAL n'est PAS installé par pip : binaire conda (cf. Dockerfile), invoqué +# en ligne de commande. L'image webapp légère (Dockerfile.webapp) a sa propre +# liste minimale (fastapi, uvicorn, Pillow, pyproj). +# CuPy est installé séparément (cupy-cuda12x) selon la cible CUDA. numpy>=1.24 +scipy>=1.10 matplotlib>=3.7 -whitebox>=2.0 rasterio>=1.3 laspy[lazrs]>=2.5 -scikit-image>=0.21 -tqdm>=4.65 -scikit-learn>=1.3 -cmcrameri>=2.0 +numba>=0.58 +Pillow>=10.0 +pillow-avif-plugin>=1.4 +fastapi>=0.110 +uvicorn>=0.29 +pydantic>=2.6 +pyproj>=3.6 +cmcrameri>=1.8 + +# Tests (./run.sh --test) +pytest>=7.4