File size: 1,120 Bytes
4c63943
900105b
67f5c3e
 
9ea6d36
c28379a
 
bd30707
 
 
9ea6d36
 
bae71e9
 
bd30707
 
9ea6d36
 
 
900105b
 
 
 
 
 
 
 
 
 
bd30707
67f5c3e
bd30707
06f35ef
bd30707
67f5c3e
 
9ea6d36
16a55e0
 
 
1d3fcfd
7360d88
9ea6d36
10ebcb2
bd30707
900105b
67f5c3e
 
bd30707
 
 
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
FROM rocker/r2u:latest

WORKDIR /code

# Install system dependencies + Python
RUN apt-get update && apt-get install -y --no-install-recommends \
    ca-certificates \
    libcurl4-openssl-dev \
    libssl-dev \
    libxml2-dev \
    python3 \
    python3-pip \
    python3-dev \
    libpython3-dev \
    && rm -rf /var/lib/apt/lists/*

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

# Tell reticulate which Python to use
ENV RETICULATE_PYTHON=/usr/bin/python3

# Heavy R packages (cached separately so they don't rebuild often)
RUN install2.r --error --skipinstalled \
    arrow \
    xgboost \
    recipes

# Lighter R packages (this layer rebuilds if you add/remove packages)
RUN install2.r --error --skipinstalled \
    shiny \
    shinydashboard \
    shinyBS \
    DT \
    dplyr \
    readr \
    stringr \
    jsonlite \
    httr \
    progressr \
    RCurl \
    curl \
    base64enc \
    reticulate 

# Copy app files (changes here won't trigger package reinstall)
COPY . .

EXPOSE 7860

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