Skip to content
Permalink
f896a0a41e
Switch branches/tags

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?
Go to file
 
 
Cannot retrieve contributors at this time
52 lines (48 sloc) 1.64 KB
FROM rocker/shiny:latest
LABEL maintainer="Jens Preussner <jens.preussner@mpi-bn.mpg.de>"
LABEL maintainer="Hendrik Schultheis <hendrik.schultheis@mpi-bn.mpg.de>"
LABEL maintainer="Carsten Kuenne <carsten.kuenne@mpi-bn.mpg.de>"
LABEL version="2.1.3"
#
# Configuration
#
ENV \
# Define the default location from which the app is served
WILSON_LOCATION=/ \
# Define the landing page for the app
WILSON_LANDING_PAGE=feature_selection
#
# Move app and data to container
#
COPY . /srv/shiny-server
#
# Installation procedure
#
RUN apt-get update && apt-get install -y \
libnlopt-dev \
libssl-dev \
libxml2-dev \
libcurl4-openssl-dev \
git \
procps \
python3-pip && \
apt-get clean && \
# Install jinja2 templating engine
pip3 install j2cli && \
# Install R infrastructure
R -e "install.packages(c('BiocManager', 'webshot'), repos = c(CRAN = 'https://cloud.r-project.org/'))" && \
R -e "webshot::install_phantomjs()" && \
R -e "BiocManager::install(c('shinyBS', 'shinydashboard', 'shinythemes', 'htmltools', 'wilson', 'markdown', 'pacman'))" && \
cp /root/bin/phantomjs /usr/local/bin && \
# Move entrypoint, create log directory
mv /srv/shiny-server/entrypoint.sh / && \
mkdir /srv/shiny-server/logs && \
# Change ownerships
chmod -R ugo+wrX /var/log/shiny-server/ && \
chown -R shiny:shiny /srv/shiny-server/ && \
chmod o+w /usr/local/lib/R/site-library && \
# Clean up existing sample apps
rm -rf /srv/shiny-server/[0-9][0-9]_* /srv/shiny-server/index.html /srv/shiny-server/sample-apps
# Start container
USER shiny
CMD ["/entrypoint.sh", "/usr/bin/shiny-server"]