-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
45 lines (31 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
FROM r-base:3.4.0
RUN apt-get update -qq \
&& apt-get install --no-install-recommends -y \
libgfortran3 gfortran libcurl4-gnutls-dev libssl-dev
MAINTAINER Tobias Schmidt "[email protected]"
EXPOSE 7678
WORKDIR /srv/shiny/
#COPY packrat /srv/shiny/packrat
#RUN Rscript -e "install.packages('https://cran.rstudio.com/src/contrib/packrat_0.4.8-1.tar.gz')"
#RUN Rscript -e "packrat::restore('/srv/shiny/')"
#ADD lib/selectivityCalculation_0.1.0.tar.gz /srv/shiny/localRepo/selectivityCalculation_0.1.0
#RUN Rscript -e "packrat::install_local('selectivityCalculation_1.1.0.tar.gz')"
RUN Rscript -e "install.packages('shiny')"
RUN Rscript -e "install.packages('plotrix')"
RUN Rscript -e "install.packages('drc')"
RUN Rscript -e "install.packages('devtools')"
RUN Rscript -e "require(devtools); devtools::install_github('nstrayer/shinysense')"
COPY shiny.sh /usr/bin/shiny.sh
#COPY localRepo/selectivityCalculation /srv/shiny/localRepo/selectivityCalculation
#RUN Rscript -e "require('packrat'); packrat::on(); packrat::set_opts(local.repos = c('/srv/shiny/localRepo')); packrat::install_local('selectivityCalculation')"
COPY www /srv/shiny/www
COPY helpers /srv/shiny/helpers
COPY ui.R /srv/shiny/ui.R
COPY server.R /srv/shiny/server.R
# necessary for docker on Windows
# https://github.com/docker/labs/issues/215
RUN apt-get update -qq \
&& apt-get install --no-install-recommends -y \
dos2unix
RUN dos2unix /usr/bin/shiny.sh
CMD ["/usr/bin/shiny.sh"]