-
Notifications
You must be signed in to change notification settings - Fork 168
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* dockerfile up * rename dockerfile to reflectpurpose
- Loading branch information
Showing
1 changed file
with
48 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
FROM nvcr.io/nvidia/cuda:11.2.0-cudnn8-devel-ubuntu20.04 | ||
|
||
ENV DEBIAN_FRONTEND=noninteractive | ||
|
||
RUN apt-get -y update && apt-get install -y \ | ||
software-properties-common \ | ||
build-essential \ | ||
checkinstall \ | ||
cmake \ | ||
make \ | ||
pkg-config \ | ||
yasm \ | ||
git \ | ||
vim \ | ||
curl \ | ||
wget \ | ||
sudo \ | ||
apt-transport-https \ | ||
libcanberra-gtk-module \ | ||
libcanberra-gtk3-module \ | ||
dbus-x11 \ | ||
iputils-ping \ | ||
python3-dev \ | ||
python3-pip \ | ||
python3-setuptools | ||
|
||
# some image/media dependencies | ||
RUN apt-get -y update && apt-get install -y \ | ||
libjpeg8-dev \ | ||
libpng-dev \ | ||
libtiff5-dev \ | ||
libtiff-dev \ | ||
libavcodec-dev \ | ||
libavformat-dev \ | ||
libswscale-dev \ | ||
libdc1394-22-dev \ | ||
libxine2-dev \ | ||
libavfilter-dev \ | ||
libavutil-dev | ||
|
||
RUN apt-get -y update && apt-get install -y ffmpeg | ||
|
||
RUN apt-get clean && rm -rf /tmp/* /var/tmp/* /var/lib/apt/lists/* && apt-get -y autoremove | ||
|
||
ENV NVIDIA_DRIVER_CAPABILITIES=all | ||
RUN ln -s /usr/lib/x86_64-linux-gnu/libnvcuvid.so.1 /usr/local/cuda/lib64/libnvcuvid.so | ||
RUN git clone --recursive https://github.com/dmlc/decord | ||
RUN cd decord && mkdir build && cd build && cmake .. -DUSE_CUDA=ON -DCMAKE_BUILD_TYPE=Release && make -j2 && cd ../python && python3 setup.py install |
96b750c
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hey @levan92
libavdevice
is missingalso
![image](https://user-images.githubusercontent.com/30436897/149905675-5a843b75-31aa-4b17-8c0c-de7fb257bc6c.png)
96b750c
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Try install the
libavdevice-dev
to solve the missing problem.At line 39,
Since the NVIDIA runtime is disabled during build time, the
libnvcuvid
is not linked. Check #102 (comment) to enable Nvidia runtime by default.