-
Notifications
You must be signed in to change notification settings - Fork 73
Expand file tree
/
Copy pathDockerfile
More file actions
24 lines (20 loc) · 725 Bytes
/
Dockerfile
File metadata and controls
24 lines (20 loc) · 725 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
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/