File size: 1,343 Bytes
d661985
 
147bdea
d661985
cfba51a
d661985
cfba51a
3f5ef30
cfba51a
 
d661985
 
 
cfba51a
 
d661985
 
 
 
 
757a94b
 
 
 
d661985
cfba51a
757a94b
 
 
 
 
6856a08
cfba51a
77dce90
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
9e1266e
757a94b
3691000
178f34b
 
269ab87
757a94b
6856a08
d661985
cfba51a
77dce90
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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
FROM rocker/r2u:latest
WORKDIR /code
RUN apt-get update && apt-get install -y --no-install-recommends \
    ca-certificates \
    libcurl4-openssl-dev \
    libssl-dev \
    libxml2-dev \
    libmagick++-dev \
    libfontconfig1-dev \
    libfreetype6-dev \
    libpng-dev \
    libjpeg-dev \
    libtiff5-dev \
    libharfbuzz-dev \
    libfribidi-dev \
    zlib1g-dev \
    libbz2-dev \
    liblz4-dev \
    libzstd-dev \
    libsnappy-dev \
    python3 \
    python3-pip \
    python3-dev \
    libpython3-dev \
    && rm -rf /var/lib/apt/lists/*

# Python packages
RUN pip3 install huggingface_hub --break-system-packages

ENV RETICULATE_PYTHON=/usr/bin/python3

# Install CRAN / r2u packages
RUN install2.r --error --skipinstalled \
    shiny \
    DT \
    dplyr \
    readxl \
    scales \
    readr \
    tidyverse \
    bslib \
    htmltools \
    shinyWidgets \
    ggplot2 \
    png \
    arrow \
    grid \
    gridExtra \
    magick \
    gt \
    gtExtras \
    httr \
    ggnewscale \
    fmsb \
    plotly \
    tidymodels \
    xgboost \
    mgcv \
    remotes \
    cowplot \
    reticulate \
    recipes \
    Matrix
    
# Install ggradar from GitHub
RUN R -q -e "remotes::install_github('ricardo-bion/ggradar', upgrade = 'never')"
COPY . .
EXPOSE 7860
CMD ["R", "--quiet", "-e", "shiny::runApp(host='0.0.0.0', port=7860)"]