FROM rocker/shiny-verse:4.3.0 # Workaround for renv cache RUN mkdir /.cache RUN chmod 777 /.cache WORKDIR /code # Install renv RUN install2.r --error \ renv # Copy application code COPY renv.lock . # Install dependencies RUN Rscript -e 'options(renv.config.cache.enabled = FALSE); renv::restore(prompt = FALSE)' COPY data/ ./data/ COPY app.R . COPY config.yml . COPY rhino.yml . COPY app/ ./app/ RUN ls -lah ./data/ RUN mkdir -p ./app_cache/sass CMD ["R", "--quiet", "-e", "shiny::runApp(host='0.0.0.0', port=7860)"]