-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathDockerfile
37 lines (29 loc) · 1.21 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
FROM rocker/rstudio
# install some R required stuff
RUN apt-get update -y --no-install-recommends \
&& apt-get -y install -f \
zlib1g-dev \
libssl-dev \
libcurl4-openssl-dev
# install R packages
RUN Rscript -e "install.packages(c('shinydashboard', 'htmlTable', 'DT', 'devtools'))"
RUN Rscript -e "source('https://bioconductor.org/biocLite.R'); biocLite('BiocInstaller'); \
biocLite('SingleCellExperiment')"
RUN Rscript -e "devtools::install_github('hemberg-lab/scmap')"
# install shiny
RUN export ADD=shiny && bash /etc/cont-init.d/add
# add app to the server
ADD atlases atlases/
ADD app app/
ADD utils utils/
RUN for d in atlases/*/; do cp app/* "$d"; done
RUN for d in atlases/*/www/; do cp utils/* "$d"; done
RUN cp -r atlases/* /srv/shiny-server
# update the index page
COPY index_page/index.html /srv/shiny-server/index.html
COPY index_page/img /srv/shiny-server/img
# try to avoid greying out of the apps
# https://stackoverflow.com/questions/44397818/shiny-apps-greyed-out-nginx-proxy-over-ssl
RUN echo 'sanitize_errors off;disable_protocols xdr-streaming xhr-streaming iframe-eventsource iframe-htmlfile;' >> /etc/shiny-server/shiny-server.conf
EXPOSE 8787
CMD ["/init"]