Public Repository

Last pushed: 2 months ago
Short Description
Container based on Rocker/shiny but with some custom configuration
Full Description

Docker for Shiny Server

This is a Dockerfile for Shiny Server on Debian "testing". It is based on the Rocker/shiny image

Custom configuration

  • installation of additional packages ('ggplot2', 'plotly', 'shinyjs', 'shinyBS', 'leaflet', 'ggmap', 'webshot', 'DT', 'shinydashboard')
  • copy shiny-server config file. Notice the shiny-server.conf should be available in the current dir.
    COPY shiny-server.conf /etc/shiny-server/shiny-server.conf

I have used the custom server config for preserving log files.
This is my config (please replace dots with hashtag)

  • Instruct Shiny Server to run applications as the user "shiny"
    run_as shiny;
    preserve_logs true;

  • Define a server that listens on port 3838
    server {
    listen 3838;

    • Define a location at the base URL
      location / {

      • Host the directory of Shiny Apps stored in this directory
        site_dir /srv/shiny-server;

      • Log all Shiny output to files in this directory
        log_dir /var/log/shiny-server;

      • When a user visits the base URL rather than a particular application,

      • an index of the applications available in this directory will be shown.
        directory_index on;
        }
        }
Docker Pull Command
Owner
ginberg

Comments (0)