forked from Yaafe/Yaafe
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
57 lines (49 loc) · 1.44 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
FROM debian:jessie
MAINTAINER Thomas Fillon <[email protected]>
# Install Debian dependencies
RUN apt-get update && apt-get install -y \
cmake \
cmake-curses-gui \
libargtable2-0 \
libargtable2-dev \
libsndfile1 libsndfile1-dev \
libmpg123-0 libmpg123-dev \
libfftw3-3 libfftw3-dev \
liblapack-dev \
libhdf5-dev \
libeigen3-dev \
bzip2 \
wget \
gcc g++
# Install conda in /opt/miniconda
ENV PATH /opt/miniconda/bin:$PATH
RUN wget http://repo.continuum.io/miniconda/Miniconda-latest-Linux-x86_64.sh -O miniconda.sh && \
bash miniconda.sh -b -p /opt/miniconda && \
rm miniconda.sh && \
hash -r && \
conda config --set always_yes yes --set changeps1 yes && \
conda update -q conda
RUN conda install numpy sphinx
RUN mkdir /srv/src
RUN mkdir /srv/src/yaafe
WORKDIR /srv/src/yaafe
COPY . /srv/src/yaafe
RUN mkdir build && \
cd build && \
cmake -DCMAKE_INSTALL_PREFIX=/opt/miniconda/ \
-DCMAKE_INSTALL_PYTHON_PACKAGES=/opt/miniconda/lib/python2.7 \
-DWITH_FFTW3=ON \
-DHDF5_ROOT=/usr/lib/x86_64-linux-gnu/hdf5/serial/ \
-DWITH_HDF5=ON \
-DWITH_LAPACK=ON \
-DWITH_MATLAB_MEX=OFF \
-DWITH_MPG123=ON \
-DWITH_SNDFILE=ON \
.. && \
make && \
make install && \
cd ../..
ENV LD_LIBRARY_PATH /opt/miniconda/lib/
COPY ./docker-entrypoint.sh /
ENTRYPOINT ["/docker-entrypoint.sh"]
CMD ["--help"]