forked from Normaliz/Normaliz
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
56 lines (43 loc) · 1.25 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
# Dockerfile for Normaliz
FROM ubuntu:focal
ENV TZ=Europe/Berlin
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone
RUN apt-get update \
&& apt-get install -y \
build-essential m4 \
autoconf autogen libtool \
libgmp-dev \
git \
libboost-all-dev \
wget curl sed \
unzip \
sudo \
python3-pip
RUN pip3 install setuptools
RUN adduser --quiet --shell /bin/bash --gecos "norm user,101,," --disabled-password norm \
&& adduser norm sudo \
&& chown -R norm:norm /home/norm \
&& echo 'norm ALL=(ALL) NOPASSWD:ALL' >> /etc/sudoers
USER norm
ENV HOME /home/norm
ENV PATH ${HOME}/bin:${PATH}
WORKDIR /home/norm
# ENV NUMBER_CORES=$(sudo cat /proc/cpuinfo | grep processor | wc -l)
# ENV NUMBER_CORES = 4
# COPY . /home/norm/Normaliz
RUN git clone https://github.com/Normaliz/Normaliz.git && \
cd Normaliz && \
git checkout master && \
cd ..
RUN sudo chown -R norm:norm Normaliz && \
cd Normaliz && \
./install_normaliz_with_eantic.sh &&\
sudo cp -r local /usr &&\
sudo ldconfig && \
cd ..
RUN cd /home/norm/Normaliz && \
./install_pynormaliz.sh --sudo
RUN cd /home/norm/Normaliz/PyNormaliz && \
python3 tests/runtests.py && \
cd ..
CMD /bin/bash