forked from llr-cta/calin
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
43 lines (36 loc) · 1.77 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
# calin/Dockerfile -- Stephen Fegan -- 2016-09-08
#
# Copyright 2016, Stephen Fegan <[email protected]>
# Laboratoire Leprince-Ringuet, CNRS/IN2P3, Ecole Polytechnique, Institut Polytechnique de Paris
#
# This file is part of "calin"
#
# "calin" is free software: you can redistribute it and/or modify it under the
# terms of the GNU General Public License version 2 or later, as published by
# the Free Software Foundation.
#
# "calin" is distributed in the hope that it will be useful, but WITHOUT ANY
# WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
# A PARTICULAR PURPOSE. See the GNU General Public License for more details.
FROM llrcta/calin-docker-base:ubuntu18.04_v1.33
MAINTAINER [email protected]
# Allow CPU architecture to be specified at build time, e.g.:
# docker build --build-arg arch=native .
# docker build --build-arg arch=broadwell .
ARG arch=generic
# Allow number of build threads to be specified
ARG threads=2
ADD / /build/calin/
RUN cd /build/calin && \
mkdir mybuild && \
cd mybuild && \
cmake -DCALIN_BUILD_ARCH=${arch} \
-DCMAKE_BUILD_TYPE=Release \
-DCMAKE_INSTALL_PREFIX=/usr \
-DCALIN_PYTHON_SUB_DIR=lib/python3.6 \
.. && \
make -j${threads} && \
make install && \
cd / && \
rm -rf /build
CMD ["/usr/local/bin/jupyter-notebook"]