File size: 1,072 Bytes
136e2fc
afc5b8d
 
 
d5801a3
136e2fc
d5801a3
 
 
 
 
 
 
136e2fc
d5801a3
 
136e2fc
 
 
 
 
d5801a3
 
136e2fc
 
d5801a3
 
136e2fc
 
d5801a3
136e2fc
 
 
 
afc5b8d
78834b2
136e2fc
 
 
 
 
e0c5af4
136e2fc
78834b2
d5801a3
 
 
 
 
 
 
 
3557f6e
 
78834b2
afc5b8d
 
136e2fc
 
5509105
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
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 \
    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 \
    tidyr \
    readr \
    stringr \
    scales \
    htmltools \
    ggplot2 \
    gt \
    gtExtras \
    plotly \
    tidymodels \
    xgboost \
    arrow \
    reticulate \
    recipes \
    httr \
    fmsb \
    jsonlite

COPY . .

EXPOSE 7860

CMD ["R", "--quiet", "-e", "shiny::runApp(host='0.0.0.0', port=7860)"]