Installer depuis requirements.txt et retirer les paquets jamais importés

This commit is contained in:
Antoine Jacquin
2026-09-18 21:28:14 +02:00
parent d2d8e4d85d
commit e5895df7b8
2 changed files with 20 additions and 28 deletions

View File

@ -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

View File

@ -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