dfalbel commited on
Commit
a10728c
·
unverified ·
1 Parent(s): 0313f74

Use pre-built cpu binaries for faster installation.

Browse files
Files changed (1) hide show
  1. Dockerfile +12 -0
Dockerfile CHANGED
@@ -21,6 +21,18 @@ RUN installGithub.r \
21
  rstudio/httpuv \
22
  mlverse/tok
23
 
 
 
 
 
 
 
 
 
 
 
 
 
24
  RUN installGithub.r \
25
  mlverse/minhub
26
 
 
21
  rstudio/httpuv \
22
  mlverse/tok
23
 
24
+
25
+ RUN Rscript -e "\
26
+ options(timeout = 600);\
27
+ kind <- 'cpu';\
28
+ version <- '0.10.0.9000';\
29
+ options(repos = c(\
30
+ torch = sprintf('https://storage.googleapis.com/torch-lantern-builds/packages/%s/%s/', kind, version),\
31
+ CRAN = 'https://cloud.r-project.org'\
32
+ ));\
33
+ install.packages('torch');\
34
+ "
35
+
36
  RUN installGithub.r \
37
  mlverse/minhub
38