-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathDockerfile
30 lines (24 loc) · 867 Bytes
/
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
# It Builds an image to deploy a Rserve
# Dotcloud ubuntu image
FROM ubuntu:13.10
MAINTAINER Felipe Triana, [email protected]
# Update
RUN apt-get update
# Install wget
RUN apt-get install -y wget
# Install latest R
RUN sh -c 'echo "deb http://cran.rstudio.com/bin/linux/ubuntu trusty/" >> /etc/apt/sources.list'
RUN gpg --keyserver keyserver.ubuntu.com --recv-key E084DAB9
RUN gpg -a --export E084DAB9 | sudo apt-key add -
RUN apt-get update
RUN sudo apt-get -y install r-base
# Important additional libraries
RUN apt-get install -y libcurl4-gnutls-dev
RUN apt-get install libxml2-dev
RUN apt-get install -y libmime-base64-urlsafe-perl libdigest-hmac-perl libdigest-sha-perl
RUN apt-get install libssl-dev
# adding start R script: you can find the RScript on the docker github
ADD start.R start.R
ADD Rserv.conf /Rserv.conf
EXPOSE 6311
CMD Rscript start.R