-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathDockerfile.test
More file actions
36 lines (29 loc) · 811 Bytes
/
Dockerfile.test
File metadata and controls
36 lines (29 loc) · 811 Bytes
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
# Dockerfile for running K3D tests with GCC-compatible environment
# Solves Debian 13 GCC 15 + CUDA NVRTC incompatibility
FROM nvidia/cuda:12.4.0-devel-ubuntu22.04
# Install Python 3.11 and dependencies
RUN apt-get update && apt-get install -y \
python3.11 \
python3.11-dev \
python3-pip \
git \
&& rm -rf /var/lib/apt/lists/*
# Install Python packages
RUN pip3 install --no-cache-dir \
cupy-cuda12x \
numpy \
pytest \
pygltflib \
scikit-learn \
fonttools>=4.40.0 \
sympy \
websockets
# Set working directory
WORKDIR /workspace
# Copy K3D source
COPY . /workspace/
# Set environment
ENV PYTHONPATH=/workspace
ENV CUDA_HOME=/usr/local/cuda
# Default command: run tests
CMD ["pytest", "tests/test_morton_octree.py", "tests/test_led_pathfinder.py", "-v"]