| FROM nvidia/cuda:12.3.2-cudnn9-devel-ubuntu22.04 |
|
|
| # Set environment |
| ENV |
| DEBIAN_FRONTEND=noninteractive |
| CUDA_HOME=/usr/local/cuda \ |
| PATH=/usr/local/cuda/bin:$PATH \ |
| LD_LIBRARY_PATH=/usr/local/cuda/lib64:$LD_LIBRARY_PATH \ |
| NVIDIA_VISIBLE_DEVICES=all \ |
| NVIDIA_DRIVER_CAPABILITIES=compute,utility \ |
| HF_HOME=/app/models \ |
| TRITON_CACHE_DIR=/tmp/triton_cache \ |
| XDG_CACHE_HOME=/tmp |
| NUMBA_CACHE_DIR=/tmp/numba_cache |
|
|
| # Install |
| RUN |
| python3 |
| python3-pip |
| python3-dev |
| build-essential |
| git |
| git-lfs |
| ffmpeg |
| libsndfile1 |
| curl |
| && rm /var//apt//* |
|
|
| # Initialize Git LFS |
| RUN git lfs install |
| # Upgrade pip and install build tools |
| RUN python3 -m pip install --upgrade pip setuptools wheel uv |
|
|
| WORKDIR / |
|
|
| # Create |
| RUN /tmp/ /tmp/ |
| chown /tmp/ /tmp/ |
| chmod /tmp/ /tmp/ |
|
|
| COPY |
|
|
| # Install |
| RUN |
|
|
| COPY |
|
|
| EXPOSE |
|
|
| CMD |