-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathDockerfile
34 lines (27 loc) · 1.36 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
FROM r-base:latest
MAINTAINER Alper Kucukural "[email protected]"
# Install dependencies and Download and install shiny server
RUN apt-get update && apt-get install -y -t unstable \
sudo \
gdebi-core \
pandoc \
pandoc-citeproc \
libcurl4-gnutls-dev \
libcairo2-dev/unstable \
libxt-dev && \
wget --no-verbose https://s3.amazonaws.com/rstudio-shiny-server-os-build/ubuntu-12.04/x86_64/VERSION -O "version.txt" && \
VERSION=$(cat version.txt) && \
wget --no-verbose "https://s3.amazonaws.com/rstudio-shiny-server-os-build/ubuntu-12.04/x86_64/shiny-server-$VERSION-amd64.deb" -O ss-latest.deb && \
gdebi -n ss-latest.deb && \
rm -f version.txt ss-latest.deb && \
rm -rf /var/lib/apt/lists/*
EXPOSE 3838
RUN echo "r <- getOption('repos'); r['CRAN'] <- 'http://cran.us.r-project.org'; options(repos = r);" > ~/.Rprofile
RUN apt-get update && apt-get install -y -t unstable git vim wget libssl-dev libv8-dev libxml2-dev
RUN R -e ' install.packages("devtools");'
RUN R -e ' devtools::install_github("rstudio/d3heatmap");'
RUN R -e ' install.packages("BiocManager"); BiocManager::install("debrowser");'
RUN git clone https://github.com/UMMS-Biocore/debrowser.git /srv/shiny-server/debrowser
RUN chown shiny:shiny /srv/shiny-server/debrowser -R
COPY shiny-server.sh /usr/bin/shiny-server.sh
CMD ["/usr/bin/shiny-server.sh"]: