Skip to content

Commit

Permalink
fix pip version, make R lib writable, fix shiny-server path
Browse files Browse the repository at this point in the history
HendrikSchultheis committed Mar 17, 2021
1 parent e281aef commit be73f95
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions wilson-basic/Dockerfile
Original file line number Diff line number Diff line change
@@ -28,10 +28,10 @@ RUN apt-get update && apt-get install -y \
libcurl4-openssl-dev \
git \
procps \
python-pip && \
python3-pip && \
apt-get clean && \
# Install jinja2 templating engine
pip install j2cli && \
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()" && \
@@ -43,9 +43,10 @@ RUN apt-get update && apt-get install -y \
# 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.sh"]
CMD ["/entrypoint.sh", "/usr/bin/shiny-server"]

0 comments on commit be73f95

Please sign in to comment.