Skip to content

Commit dbfb7aa

Browse files
authored
remove redundant apt packages in Dockerfile (#372)
* refact: downgrade cuda driver requirement for docker image * feat: add a Python2/3 compatible and dependency-free dependency checker for container execution * refact: detailed instructions for nvidia-docker installation * refact: add command to test docker compatibility * refact: update model md5 * fix: put upperbound of thread allocation * refact: default model made to be TinyVGG-V2 * feat: update CUDA driver requirements and put check script on README * refact: mark logger as noexcept * feat: add cuda10.2 + CUDNN8 + TRT8 image compilation script * refact: remove redundant apt install cmds
1 parent 9a14950 commit dbfb7aa

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ RUN version="7.0.0-1+cuda10.0" ; \
2222
# && apt install -yt python-libnvinfer=${version} python3-libnvinfer=${version} && apt-mark hold python-libnvinfer python3-libnvinfer
2323

2424
# Install OpenCV Dependencies
25-
RUN apt install -y software-properties-common || apt install -y software-properties-common && \
25+
RUN apt install -y software-properties-common && \
2626
add-apt-repository "deb http://security.ubuntu.com/ubuntu xenial-security main" && \
2727
APT_DEPS="git cmake wget zip libgtk-3-dev libavcodec-dev libavformat-dev libswscale-dev libtbb2 libtbb-dev libjpeg-dev libpng-dev libtiff-dev libjasper-dev libdc1394-22-dev libgstreamer1.0-dev libgstreamer-plugins-base1.0-dev x264 v4l-utils python3-dev python3-pip libcanberra-gtk-module libcanberra-gtk3-module" && \
2828
apt install -y $APT_DEPS || apt install -y $APT_DEPS && \

Dockerfile.cu102.bk

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ RUN version="8.0.0-1+cuda10.2" ; \
2222
# && apt install -yt python-libnvinfer=${version} python3-libnvinfer=${version} && apt-mark hold python-libnvinfer python3-libnvinfer
2323

2424
# Install OpenCV Dependencies
25-
RUN apt install -y software-properties-common || apt install -y software-properties-common && \
25+
RUN apt install -y software-properties-common && \
2626
add-apt-repository "deb http://security.ubuntu.com/ubuntu xenial-security main" && \
2727
APT_DEPS="git cmake wget zip libgtk-3-dev libavcodec-dev libavformat-dev libswscale-dev libtbb2 libtbb-dev libjpeg-dev libpng-dev libtiff-dev libjasper-dev libdc1394-22-dev libgstreamer1.0-dev libgstreamer-plugins-base1.0-dev x264 v4l-utils python3-dev python3-pip libcanberra-gtk-module libcanberra-gtk3-module" && \
2828
apt install -y $APT_DEPS || apt install -y $APT_DEPS && \

0 commit comments

Comments
 (0)