shiny-for-r-rhino / Dockerfile
appsilon-open-source's picture
Basic Rhino application.
a2b91d8
raw
history blame
372 Bytes
FROM rocker/shiny-verse:4.3.0
# Workaround for renv cache
RUN mkdir /.cache
RUN chmod 777 /.cache
WORKDIR /code
# Install stable packages from CRAN
RUN install2.r --error \
renv
COPY . .
RUN Rscript -e 'options(renv.config.cache.enabled = FALSE); renv::restore(prompt = FALSE)'
EXPOSE 7860
CMD ["R", "--quiet", "-e", "shiny::runApp(host='0.0.0.0', port=7860)"]