Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
35 changes: 35 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
FROM rocker/shiny-verse

RUN apt-get update && apt-get install -y --no-install-recommends \
sudo \
cmake \
libcurl4-gnutls-dev \
libcairo2-dev \
libxt-dev \
libssl-dev \
libssh2-1-dev

RUN rm -rf /var/lib/apt/lists/*
RUN rm -rf /tmp/downloaded_packages

RUN install2.r --skipinstalled --error --deps TRUE shinydashboard
RUN install2.r --skipinstalled --error --deps TRUE shinycssloaders
RUN install2.r --skipinstalled --error --deps TRUE shinyFiles
RUN install2.r --skipinstalled --error --deps TRUE markdown
RUN install2.r --skipinstalled --error --deps TRUE DT
RUN install2.r --skipinstalled --error --deps TRUE ggpubr
RUN install2.r --skipinstalled --error --deps TRUE scales

RUN addgroup --system app && adduser --system --ingroup app app

WORKDIR /home/app

COPY app .

RUN chown app:app -R /home/app

USER app

EXPOSE 3838

ENTRYPOINT R -e "shiny::runApp('/home/app',3838,FALSE,'0.0.0.0')"
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
14 changes: 7 additions & 7 deletions set-up.R → app/set-up.R
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@
## PACKAGES ##
##############

if(!require("shiny")) install.packages("shiny")
if(!require("shinydashboard")) install.packages("shinydashboard")
if(!require("shinycssloaders")) install.packages("shinycssloaders")
if(!require("shinyFiles")) install.packages("shinyFiles")
if(!require("markdown")) install.packages("markdown")
if(!require("DT")) install.packages("DT")
if(!require("tidyverse")) install.packages("tidyverse")
if(!require("shiny")) install.packages("shiny")
if(!require("shinydashboard")) install.packages("shinydashboard")
if(!require("shinycssloaders")) install.packages("shinycssloaders")
if(!require("shinyFiles")) install.packages("shinyFiles")
if(!require("markdown")) install.packages("markdown")
if(!require("DT")) install.packages("DT")
if(!require("tidyverse")) install.packages("tidyverse")
if(!require("ggpubr")) install.packages("ggpubr") # draw regression line in ggplot
if(!require("scales")) install.packages("scales") # modify datetime format in ggpplot

Expand Down
File renamed without changes.
File renamed without changes
File renamed without changes
File renamed without changes.
File renamed without changes
File renamed without changes.