Skip to content

Commit

Permalink
Example Dockerfile-CUDA+OpenCV
Browse files Browse the repository at this point in the history
  • Loading branch information
rajat2004 committed Feb 26, 2020
1 parent fe0110e commit 75a9488
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
FROM nvidia/cuda:10.1-cudnn7-devel-ubuntu18.04

# To avoid tzdata configuration during Docker build - https://stackoverflow.com/a/44333806
RUN ln -fs /usr/share/zoneinfo/America/New_York /etc/localtime

# Clone repo in seperate folder
WORKDIR /workspace

RUN DEBIAN_FRONTEND=noninteractive apt-get update && apt-get install -y \
git \
curl \
wget \
lsb-release \
sudo \
tzdata \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/* && \
dpkg-reconfigure -f noninteractive tzdata

RUN git clone https://github.com/rsnk96/Ubuntu-Setup-Scripts.git && \
cd Ubuntu-Setup-Scripts && \
DEBIAN_FRONTEND=noninteractive ./Build-OpenCV.sh && \
rm -rf opencv/ && \
rm -rf opencv_contrib/

0 comments on commit 75a9488

Please sign in to comment.