FROM rocker/shiny-verse:4.3.0 RUN apt-get update --fix-missing \ && apt-get install -y software-properties-common \ && rm -rf /var/lib/apt/lists/* RUN add-apt-repository -y ppa:cran/poppler RUN apt-get install -y libpoppler-cpp-dev # 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 . COPY package.json . COPY package-lock.json . # 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)"]