-
Notifications
You must be signed in to change notification settings - Fork 69
/
Dockerfile
33 lines (26 loc) · 1.04 KB
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
FROM ubuntu:20.04
RUN apt update
# Need to do this to avoid docker hanging while installing cmake.
ENV TZ=America/New_York
RUN ln -snf "/usr/share/zoneinfo/$TZ" /etc/localtime
RUN echo "$TZ" > /etc/timezone
RUN apt install -y tzdata
RUN apt install -y build-essential cmake git libgtk2.0-dev pkg-config
# Image support
RUN apt install -y libtbb2 libtbb-dev libjpeg-dev libpng-dev libtiff-dev
# Video support
RUN apt install -y libavcodec-dev libavformat-dev libswscale-dev
WORKDIR /home
# Uncomment only for generating the Docker image to be pushed to Docker Hub.
# RUN git clone https://github.com/fdcl-gwu/aruco-markers.git
# WORKDIR /home/aruco-markers
# RUN git submodule update --init
# WORKDIR /home/aruco-markers/libraries/opencv
# RUN mkdir build
# WORKDIR /home/aruco-markers/libraries/opencv/build
# RUN cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=/usr/local -DOPENCV_EXTRA_MODULES_PATH=../../opencv_contrib/modules ..
# RUN make -j4
# RUN make install
# WORKDIR /home
# RUN rm -rf /home/aruco-markers
ENV DISPLAY=host.docker.internal:0.0