-
-
Notifications
You must be signed in to change notification settings - Fork 123
Expand file tree
/
Copy pathDockerfile
More file actions
67 lines (45 loc) · 1.66 KB
/
Copy pathDockerfile
File metadata and controls
67 lines (45 loc) · 1.66 KB
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
#Download base image
ARG UBUNTU_VERSION=22.04
FROM ubuntu:${UBUNTU_VERSION} as base
# LABEL about the custom image
LABEL maintainer="david.coeurjolly@cnrs.fr"
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-dev
### Install optional deps
RUN apt -y install libmagick++-dev
RUN apt -y install graphicsmagick*
RUN apt -y install doxygen
RUN apt -y install libcgal-dev
#RUN apt-get -y install libinsighttoolkit5-dev
#RUN apt -y install libqglviewer-dev-qt5
#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 .. -DDGTAL_WITH_FFTW3=true - DDGTAL_WITH_CGAL=true -DDGTAL_WITH_ITK=true -DDGTAL_WITH_OPENMP=true -DDGTAL_WITH_CAIRO=true -DDGTAL_WITH_POLYSCOPE_VIEWER=true -DDGTAL_WITH_MAGICK=true && make install