forked from FRC-Team-4143/GpuDetectorJNI
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
43 lines (39 loc) · 1.17 KB
/
Dockerfile
File metadata and controls
43 lines (39 loc) · 1.17 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
FROM nvcr.io/nvidia/l4t-jetpack:r36.4.0
# Avoid interactive prompts during package installation
ENV DEBIAN_FRONTEND=noninteractive
# Install build dependencies, CUDA toolkit (for nvcc), and required libraries
# nvidia-cuda-toolkit provides the 'fake' CUDA environment (compiler + headers) on non-Jetson hardware
RUN apt-get update && apt-get install -y \
bash \
build-essential \
cmake \
ninja-build \
openjdk-17-jdk \
coreutils \
ncurses-bin \
sudo \
procps \
findutils \
git \
gcc-12 \
g++-12 \
libopencv-dev \
protobuf-compiler \
libxrandr-dev \
libssh-dev \
pkg-config \
libclang-dev \
python3 \
python3-pip \
python3-numpy \
pybind11-dev \
&& rm -rf /var/lib/apt/lists/* \
&& update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-12 100 \
&& update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-12 100
# Set working directory
WORKDIR /opt
# Set environment variables to match the simulated CUDA paths
ENV CUDA_HOME=/usr/local/cuda
ENV LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/cuda/lib64
ENV PATH=$PATH:/usr/local/cuda/bin
ENV JAVA_HOME=/usr/lib/jvm/java-17-openjdk-arm64