-
Notifications
You must be signed in to change notification settings - Fork 9
/
Dockerfile
44 lines (43 loc) · 1.07 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
FROM ubuntu:latest
RUN useradd -ms /bin/bash milkuser
ENV DEBIAN_FRONTEND noninteractive
RUN apt-get update && \
apt-get install -y \
git \
make \
dpkg-dev \
libc6-dev \
cmake \
pkg-config \
python3-dev \
libcfitsio-dev \
pybind11-dev \
python3-pybind11 \
libgsl-dev \
libfftw3-dev \
libncurses-dev \
libbison-dev \
libfl-dev \
libreadline-dev \
gfortran libopenblas-dev liblapacke-dev \
pkg-config \
gcc \
g++
#RUN rm /usr/bin/gcc /usr/bin/g++
#RUN ln /usr/bin/gcc-10 /usr/bin/gcc
#RUN ln /usr/bin/g++-10 /usr/bin/g++
RUN git clone https://github.com/milk-org/milk.git /build
WORKDIR /build
ENV MILK_PYTHON="OFF"
RUN bash ./compile.sh
WORKDIR /build/_build
RUN make install
RUN mkdir /work
WORKDIR /work
ENV DEBIAN_FRONTEND interactive
RUN ln -s /usr/local/milk-* /usr/local/milk
ENV MILK_ROOT /build
ENV MILK_INSTALLDIR /usr/local/milk
ENV PATH ${PATH}:${MILK_INSTALLDIR}/bin
ENV PKG_CONFIG_PATH $PKG_CONFIG_PATH:${MILK_INSTALLDIR}/lib/pkgconfig
USER milkuser