-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
35 lines (26 loc) · 1.65 KB
/
Copy pathDockerfile
File metadata and controls
35 lines (26 loc) · 1.65 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
FROM ubuntu:22.04
RUN apt-get update
RUN DEBIAN_FRONTEND=noninteractive TZ=Etc/UTC apt-get -y dist-upgrade
RUN DEBIAN_FRONTEND=noninteractive TZ=Etc/UTC apt-get install -y libcurl4-openssl-dev libxml2-dev libssl-dev cmake libfontconfig1-dev libharfbuzz-dev libfribidi-dev libnlopt-dev libxml2-dev libarchive-dev libpq-dev libatlas-base-dev libeigen3-dev libfreetype6-dev libgeos-dev libgmp3-dev libhdf5-dev libjpeg-dev libpng-dev libtiff5-dev gnupg2 software-properties-common
RUN apt-key adv --keyserver keyserver.ubuntu.com --recv-keys E298A3A825C0D65DFD57CBB651716619E084DAB9
RUN add-apt-repository 'deb https://cloud.r-project.org/bin/linux/ubuntu jammy-cran40/'
RUN apt-get update
RUN DEBIAN_FRONTEND=noninteractive TZ=Etc/UTC apt-get install -y r-base
RUN groupadd --system app
RUN useradd --system -g app app
# for example data sets (assets)
ENV SHINY_DATA_FOLDER=/home/app/
COPY . /home/app/
COPY inc/ /home/app/inc/
COPY www/ /home/app/www/
COPY helpfiles/ /home/app/helpfiles/
COPY example_data/ /home/app/example_data/
WORKDIR /home/app
RUN Rscript -e "install.packages(c('shiny', 'shinybusy', 'shinyjs', 'shinythemes', 'shinyFiles'))"
RUN Rscript -e "install.packages(c('shinyWidgets', 'shinyalert', 'shinyhelper', 'colourpicker'))"
RUN Rscript -e "install.packages(c('dplyr', 'writexl', 'readxl', 'tidyr', 'viridis', 'lubridate'))"
RUN Rscript -e "install.packages(c('zoo', 'fs', 'hash', 'tools', 'cicerone', 'tidyverse'))"
RUN Rscript -e "install.packages(c('data.table', 'plotly', 'ggplot2', 'doBy', 'stringr', 'broom'))"
RUN Rscript -e "install.packages(c('rstatix', 'emmeans', 'ggExtra', 'patchwork', 'ggpubr', 'DT'))"
EXPOSE 1338
CMD ["Rscript", "startapp.R"]