File size: 1,110 Bytes
17361ba
 
 
385090d
f2cf28c
1a5c797
 
 
 
17361ba
 
 
 
1a5c797
f8e2286
 
1a5c797
17361ba
f2cf28c
1a5c797
385090d
17361ba
 
 
f2cf28c
17361ba
 
f2cf28c
17361ba
 
f2cf28c
 
 
17361ba
f2cf28c
 
 
17361ba
f2cf28c
17361ba
 
 
 
 
 
 
 
 
f2cf28c
17361ba
 
 
 
9f5f8b4
1a5c797
17361ba
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
FROM rocker/shiny:latest

WORKDIR /code

# System deps for common R packages + OpenMP (xgboost)
RUN apt-get update && apt-get install -y \
    libcurl4-openssl-dev \
    libssl-dev \
    libxml2-dev \
    libmagick++-dev \
    libpng-dev \
    libjpeg-dev \
    libtiff-dev \
    libfontconfig1-dev \
    libharfbuzz-dev \
    libfribidi-dev \
    libfreetype6-dev \
    libgit2-dev \
    libgomp1 \
    && rm -rf /var/lib/apt/lists/*

# Use binary Arrow when available
ENV LIBARROW_BINARY=true

# Install CRAN packages (includes your new libraries)
RUN install2.r --error --skipinstalled \
    shiny \
    shinydashboard \
    DT \
    dplyr \
    ggplot2 \
    tidyr \
    stringr \
    scales \
    maps \
    mapproj \
    arrow \
    readr \
    xgboost \
    tidyverse \
    bslib \
    htmltools \
    shinyWidgets \
    grid \
    gridExtra \
    magick \
    gt

# Optional: gtExtras (if you still use it)
RUN R -e "install.packages('remotes'); remotes::install_github('jthomasmock/gtExtras')"

COPY . /code

EXPOSE 7860

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