jcheng5 commited on
Commit
1e06b58
·
1 Parent(s): af3ed79

Don't use renv cache with docker

Browse files
Files changed (1) hide show
  1. Dockerfile +4 -0
Dockerfile CHANGED
@@ -2,6 +2,10 @@ FROM rocker/shiny-verse:latest
2
 
3
  WORKDIR /code
4
 
 
 
 
 
5
  RUN R --quiet -e "install.packages('renv'); renv::init()"
6
 
7
  COPY ./renv.lock /code/renv.lock
 
2
 
3
  WORKDIR /code
4
 
5
+ # Cache doesn't help for single-use containers (and huggingface
6
+ # spaces don't let us write to renv's default cache path)
7
+ ENV RENV_CONFIG_CACHE_ENABLED=FALSE
8
+
9
  RUN R --quiet -e "install.packages('renv'); renv::init()"
10
 
11
  COPY ./renv.lock /code/renv.lock