-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
executable file
·36 lines (33 loc) · 1.29 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
FROM ubuntu:16.04
MAINTAINER wangm23456 <[email protected]>
RUN apt-get update; \
apt-get install -y \
make cmake gcc g++ curl wget \
libxmu-dev libxmuu-dev git dpkg-dev binutils language-pack-en \
libx11-dev libxpm-dev libxft-dev libxext-dev gfortran libxi-dev\
libssl-dev libpcre3-dev xlibmesa-glu-dev libglew1.5-dev libxi6\
libftgl-dev libmysqlclient-dev libfftw3-dev graphviz-dev \
libavahi-compat-libdnssd-dev libldap2-dev python-dev \
libxml2-dev libkrb5-dev libgsl0-dev libqt4-dev nano vim; \
apt-get clean
WORKDIR /root/
RUN mkdir ./Geant4/; \
mkdir ./Geant4/build/; \
mkdir ./Geant4/install/; \
cd ./Geant4/; \
curl -O http://geant4.web.cern.ch/geant4/support/source/geant4.10.01.p03.tar.gz; \
tar -xzf geant4.10.01.p03.tar.gz
WORKDIR /root/Geant4/
RUN cd ./build/; \
cmake -DCMAKE_INSTALL_PREFIX=~/Geant4/install \
# -DGEANT4_USE_OPENGL_X11=ON -DGEANT4_USE_RAYTRACE_X11=ON DGEANT4_USE_QT=ON\
-DGEANT4_BUILD_MULTITHREADED=ON \
# -DGEANT4_INSTALL_DATA=ON \
~/Geant4/geant4.10.01.p03; \
make -j20; \
make install; \
echo "source ~/Geant4/install/share/Geant4-10.1.3/geant4make/geant4make.sh" > ~/.bashrc
WORKDIR /root/Geant4/
RUN rm -r ./build; \
rm -r ./geant4.10.01.p03; \
rm geant4.10.01.p03.tar.gz