File size: 929 Bytes
910aab3
 
d883625
 
 
 
 
 
 
910aab3
 
 
b532e43
b117b18
5e5e51f
0dd034e
 
232561f
b532e43
6f9b128
 
910aab3
b532e43
910aab3
 
 
 
d883625
 
 
 
 
910aab3
 
b532e43
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
FROM rocker/shiny-verse:latest

RUN useradd --create-home appuser

ENV RENV_CONFIG_REPOS_OVERRIDE https://packagemanager.rstudio.com/cran/latest
ENV HOME=/home/appuser
WORKDIR $HOME

# WORKDIR /code

# Install stable packages from CRAN
RUN install2.r --error \
    dplyr \ 
    tidyr \ 
    parsnip \ 
    workflows \ 
    xgboost \ 
    recipes \ 
    echarts4r \ 
    shiny \
    shinyWidgets

    # Install development packages from GitHub
RUN installGithub.r \
    rstudio/bslib \
    rstudio/httpuv

    # Create the .cache directory and give appuser permission to write to it
RUN mkdir -p /home/appuser/.cache && chown -R appuser:appuser /home/appuser/.cache
# Create the .cache/pins/url directory and give appuser permission to write to it
RUN mkdir -p /home/appuser/.cache/pins/url && chown -R appuser:appuser /home/appuser/.cache/pins/url

COPY . .

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