File size: 423 Bytes
865c2b9
 
 
 
1e06b58
 
 
 
865c2b9
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
FROM rocker/shiny-verse:latest

WORKDIR /code

# Cache doesn't help for single-use containers (and huggingface
# spaces don't let us write to renv's default cache path)
ENV RENV_CONFIG_CACHE_ENABLED=FALSE

RUN R --quiet -e "install.packages('renv'); renv::init()"

COPY ./renv.lock /code/renv.lock

RUN R --quiet -e "renv::restore()"
RUN ls

COPY . .

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