Permalink
Cannot retrieve contributors at this time
Name already in use
A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
wilson-apps/docker/1.2/Dockerfile
Go to fileThis commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
50 lines (39 sloc)
1.38 KB
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Pulls debian:latest from dockerhub | |
FROM debian | |
# Dockerfile questions go to | |
MAINTAINER P. Hofmann / MPI-BN / IT Service Group / peter.hofmann@mpi-bn.mpg.de | |
#Some basic packages, updates and cleanup | |
RUN apt-get -y update && apt-get -y upgrade && \ | |
apt-get -y install \ | |
r-base \ | |
wget \ | |
libnlopt-dev \ | |
libssl-dev \ | |
libxml2-dev \ | |
libcurl4-openssl-dev \ | |
git \ | |
gdebi-core && \ | |
apt-get clean && \ | |
#Installs DEVTOOLS | |
Rscript -e "install.packages(c('devtools'), \ | |
repos='https://cran.rstudio.com/')" && \ | |
#Installs BIOCONDUCTOR/BiocInstaller | |
Rscript -e 'source("https://bioconductor.org/biocLite.R")' && \ | |
#Install Shiny-Server | |
wget https://download3.rstudio.org/ubuntu-12.04/x86_64/shiny-server-1.5.6.875-amd64.deb && \ | |
gdebi -n shiny-server-1.5.6.875-amd64.deb && \ | |
rm /srv/shiny-server/index.html && \ | |
rm -rf /srv/shiny-server/sample-apps && \ | |
#Install WILSON | |
Rscript -e 'devtools::install_github(repo = "loosolab/wilson", host="github.molgen.mpg.de/api/v3")' && \ | |
#Install WILSON App | |
git clone https://github.molgen.mpg.de/loosolab/wilson-apps /srv/shiny-server/tmp && \ | |
cp -a /srv/shiny-server/tmp/wilson-basic/. /srv/shiny-server/ && \ | |
rm -rf /srv/shiny-server/tmp && \ | |
rm -rf /srv/shiny-server/data && \ | |
mkdir /srv/shiny-server/data && \ | |
chown -R shiny:shiny /srv/shiny-server/ | |
EXPOSE 3838 | |
ADD wilson-key.sh / | |
RUN chmod +x /wilson-key.sh | |
ENTRYPOINT ["/bin/bash", "-c", "/wilson-key.sh"] |