forked from DGtal-team/DGtal
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
75 lines (49 loc) · 1.76 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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
#Download base image
ARG UBUNTU_VERSION=20.04
FROM ubuntu:${UBUNTU_VERSION} as base
# LABEL about the custom image
LABEL maintainer="[email protected]"
LABEL version="0.0.1"
LABEL description="This Docker is for the Dgtal library installation."
ARG DEBIAN_FRONTEND=noninteractive
###Update
RUN apt-get update && apt-get install -y curl
##### Basics
RUN apt install -y build-essential
#### Install Git
RUN apt install -y git
#### Install G++
RUN apt install g++
#### gl libraries
RUN apt -y update --fix-missing
#RUN apt -y install libx11-dev
RUN apt -y install mesa-common-dev libglm-dev mesa-utils
### Install cmake
RUN apt -y install cmake
###Install boost
RUN apt -y install libboost-all-dev
###Install clang-9
RUN apt -y install clang-9
RUN apt -y install libcgal*
RUN apt -y install libmagick++-dev
RUN apt -y install graphicsmagick*
RUN apt -y install doxygen
RUN apt -y install libcgal-dev
RUN apt -y install libinsighttoolkit4-dev
RUN apt -y install libqglviewer-dev-qt5
RUN apt -y install libgmp-dev
RUN apt -y install libeigen3-dev
RUN apt -y install libfftw3-dev
#### User to install
RUN groupadd -g 1000 digital
RUN useradd -d /home/digital -s /bin/bash -m digital -u 1000 -g 1000
RUN usermod -aG sudo digital
####
RUN apt -y install mesa-common-dev libglm-dev mesa-utils
### Directory to store the git
RUN mkdir /home/digital/git/
RUN mkdir /home/digital/git/DGtal
#### clone git and install
RUN git clone https://github.com/DGtal-team/DGtal.git /home/digital/git/DGtal
RUN mkdir /home/digital/git/DGtal/build
RUN cd /home/digital/git/DGtal/build && cmake .. -DWITH_GMP=true -DWITH_EIGEN=true -DWITH_FFTW3=true -DWITH_CGAL=true -DWITH_ITK=true -DWITH_OPENMP=true -DWITH_CAIRO=true -DWITH_QGLVIEWER=true -DWITH_MAGICK=true && make install