-
Notifications
You must be signed in to change notification settings - Fork 1
/
Dockerfile
22 lines (16 loc) · 905 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
FROM rocker/r-ver:4.0.3
# Install system dependencies
RUN apt-get update
RUN apt-get install -y \
libcurl4-openssl-dev \
libssl-dev \
libxt6
# Set global R options
RUN echo "options(repos = 'https://cloud.r-project.org')" > $(R --no-echo --no-save -e "cat(Sys.getenv('R_HOME'))")/etc/Rprofile.site
ENV RETICULATE_MINICONDA_ENABLED=FALSE
RUN R --no-echo -e "install.packages(c('cowplot', 'dplyr', 'ggplot2', 'googlesheets4', 'shiny', 'shinydashboard', 'withr'))"
COPY . /root/AzimuthDashboard
RUN R --no-echo -e "install.packages('/root/AzimuthDashboard', repos = NULL, type = 'source')"
COPY Rprofile.site /usr/local/lib/R/etc/Rprofile.site
EXPOSE 3838
CMD ["R", "-e", "AzimuthDashboard::AzimuthDashboardApp(config='/config/config.json')"]