-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
42 lines (34 loc) · 1.05 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
FROM r-base:latest
MAINTAINER eterna2 <[email protected]>
RUN apt-get update && apt-get install -y \
automake \
autotools-dev \
g++ \
git \
libcurl4-gnutls-dev \
libfuse-dev \
libssl-dev \
libxml2-dev \
make \
pkg-config \
supervisor \
&& git clone https://github.com/s3fs-fuse/s3fs-fuse.git \
&& cd s3fs-fuse/ && ./autogen.sh && ./configure && make && make install \
&& apt-get clean
WORKDIR /home
ENV R_LIBS="/home/rlib"
COPY config/fuse.conf /etc/fuse.conf
COPY config/supervisord.conf /etc/supervisor/conf.d/supervisord.conf
COPY scripts/runS3fs.sh scripts/runS3fs.sh
COPY scripts/setup.R scripts/setup.R
COPY scripts/setupBio.R scripts/setupBio.R
COPY scripts/setupPackages.R scripts/setupPackages.R
RUN chmod +x scripts/runS3fs.sh
COPY scripts/cmd.sh /usr/local/bin/cmd
RUN chmod +x /usr/local/bin/cmd
COPY packages /home/packages
COPY rscripts /home/rscripts
RUN mkdir /home/rlib
RUN Rscript -e '.libPaths( c("/home/rlib",.libPaths()) )'
WORKDIR /home/rscripts
CMD ["/usr/local/bin/cmd"]