-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathDockerfile
More file actions
91 lines (69 loc) · 2.27 KB
/
Dockerfile
File metadata and controls
91 lines (69 loc) · 2.27 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
# Pointelligence Dockerfile - 3D Point Cloud Processing Framework
# Based on CUDA-enabled PyTorch image for GPU acceleration
FROM nvidia/cuda:12.6.0-cudnn-devel-ubuntu22.04
# Set environment variables
ENV DEBIAN_FRONTEND=noninteractive
ENV PYTHONUNBUFFERED=1
ENV CUDA_HOME=/usr/local/cuda
ENV PATH=${CUDA_HOME}/bin:${PATH}
ENV LD_LIBRARY_PATH=${CUDA_HOME}/lib64:${LD_LIBRARY_PATH}
# Install system dependencies
RUN apt-get update && apt-get install -y \
python3 \
python3-dev \
python3-pip \
git \
wget \
curl \
unzip \
build-essential \
cmake \
ninja-build \
libopenblas-dev \
libgl1-mesa-glx \
libglib2.0-0 \
libsm6 \
libxext6 \
libxrender-dev \
libgomp1 \
software-properties-common \
&& rm -rf /var/lib/apt/lists/*
# Set Python aliases
RUN ln -sf /usr/bin/python3 /usr/bin/python
# Upgrade pip and install basic Python packages
RUN python -m pip install --upgrade pip setuptools wheel
# PyTorch will be installed via requirements.txt
# Create working directory
WORKDIR /workspace
# Copy requirements files
COPY requirements.txt .
COPY tests/unittest/requirements.txt tests/unittest/requirements.txt
# Install Python dependencies
RUN pip install -r requirements.txt
RUN pip install -r tests/unittest/requirements.txt
RUN pip install pytest pytest-benchmark
# Triton will be installed via requirements.txt
# Clone the repository and submodules
# Note: You can also use this Dockerfile with local source via docker build context
COPY . .
# Submodules are expected to be initialized during git clone --recursive
# Build CUDA extensions
WORKDIR /workspace/extensions
ENV TORCH_CUDA_ARCH_LIST="6.0 6.1 7.0 7.5 8.0 8.6 8.9 9.0+PTX"
RUN pip install .
# Download sample data
WORKDIR /workspace
# Set up environment for running tests
ENV PYTHONPATH=/workspace
# Test the installation
RUN python -c "import torch; print('PyTorch:', torch.__version__, 'CUDA available:', torch.cuda.is_available())"
RUN python -c "import torch; print('Environment ready for Pointelligence')"
# Default working directory
WORKDIR /workspace
# Default command
CMD ["/bin/bash"]
# Labels for metadata
LABEL description="Pointelligence: 3D Point Cloud Framework with PointCNN++"
LABEL version="1.0"
LABEL cuda_version="12.1"
LABEL pytorch_version="2.6.0"