-
Notifications
You must be signed in to change notification settings - Fork 38
/
Dockerfile
35 lines (33 loc) · 1.34 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
FROM ubuntu:bionic
RUN apt-get update && \
apt-get -y install python2.7 python-pip libboost1.62-all-dev \
libeigen3-dev git gnupg2 sudo wget ca-certificates
RUN echo 'deb https://cloud.r-project.org/bin/linux/ubuntu bionic-cran35/' \
> /etc/apt/sources.list.d/cran.list
RUN apt-key adv --keyserver keyserver.ubuntu.com \
--recv-keys E298A3A825C0D65DFD57CBB651716619E084DAB9
RUN apt-get update
RUN DEBIAN_FRONTEND=noninteractive apt-get -y install tzdata
RUN ln -fs /usr/share/zoneinfo/Australia/Melbourne /etc/localtime && \
dpkg-reconfigure --frontend noninteractive tzdata
RUN apt-get install -y r-base r-base-dev
RUN apt-get install -y vim
RUN useradd -m flashpca-user
RUN chpasswd flashpca-user:password
WORKDIR /home/flashpca-user
USER flashpca-user
RUN wget https://github.com/yixuan/spectra/archive/v0.8.1.tar.gz && \
tar xvf v0.8.1.tar.gz
ADD https://api.github.com/repos/gabraham/flashpca/git/refs/heads/master \
version.json
RUN git clone https://github.com/gabraham/flashpca.git
RUN cd flashpca && \
make all \
EIGEN_INC=/usr/include/eigen3 \
BOOST_INC=/usr/include/boost \
SPECTRA_INC=$HOME/spectra-0.8.1/include &&\
make flashpca_x86-64 \
EIGEN_INC=/usr/include/eigen3 \
BOOST_INC=/usr/include/boost \
SPECTRA_INC=$HOME/spectra-0.8.1/include
#RUN R -e "install.packages(c('abind', 'RcppEigen', 'BH', 'RSpectra'))"