Skip to content

Commit

Permalink
Dockerfile autobuild
Browse files Browse the repository at this point in the history
  • Loading branch information
FlyingFathead committed Oct 13, 2024
1 parent 2d73b3a commit b82bf43
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ RUN cmake -D CMAKE_BUILD_TYPE=RELEASE \
..

# Build and install OpenCV
RUN make -j$(nproc) && make install && ldconfig
RUN make -j$(nproc) && make install && ldconfig && make clean && rm -rf /opt/opencv_build

# Stage 2: Create the final image
FROM nvidia/cuda:12.4.0-runtime-ubuntu22.04
Expand All @@ -83,7 +83,7 @@ ENV DEBIAN_FRONTEND=noninteractive
ENV LANG=C.UTF-8

# Install runtime dependencies
RUN apt-get update && apt-get install -y --no-install-recommends \
RUN apt-get update && apt-get install -y --allow-change-held-packages --no-install-recommends \
libnvidia-ml-dev \
libcudnn9-cuda-12 \
libcudnn9-dev-cuda-12 \
Expand All @@ -96,6 +96,9 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
libespeak-ng1 \
&& rm -rf /var/lib/apt/lists/*

# Optional: List held packages for debugging
RUN apt-mark showhold

# Upgrade pip and install runtime Python dependencies
RUN python3 -m pip install --upgrade pip

Expand Down

0 comments on commit b82bf43

Please sign in to comment.