File size: 612 Bytes
86ef199
 
 
 
27e0aed
 
86ef199
 
 
 
 
 
 
 
 
 
 
 
 
 
27e0aed
 
86ef199
 
 
 
 
 
 
 
 
 
 
 
 
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
# read the doc: https://huggingface.co/docs/hub/spaces-sdks-docker

FROM rocker/shiny

RUN useradd -m -u 1000 shiny

RUN apt-get update && apt-get install -y \
    --no-install-recommends \
    git-core \
    libssl-dev \
    libcurl4-gnutls-dev \
    curl \
    libsodium-dev \
    libxml2-dev \
    libicu-dev \
    && apt-get clean \
    && rm -rf /var/lib/apt/lists/*

ENV _R_SHLIB_STRIP_=true

COPY ./app/* /srv/shiny-server/

RUN install2.r --error --skipinstalled \
    shiny \
    forecast \
    jsonlite \
    ggplot2 \
    htmltools \
    plotly

USER shiny

EXPOSE 3838

CMD ["/usr/bin/shiny-server"]