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/wilson-basic/Dockerfile
Go to fileThis commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
52 lines (48 sloc)
1.62 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
FROM rocker/shiny:4.0.4 | |
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'))" && \ | |
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"] |