fix installation of dependencies issue

This commit is contained in:
Minghe Huang
2017-11-25 20:30:13 +08:00
parent 7af6a9b311
commit f895b2151f
2 changed files with 3 additions and 3 deletions

View File

@@ -2,7 +2,7 @@ FROM r-base
COPY . /usr/local/src/fx COPY . /usr/local/src/fx
WORKDIR /usr/local/src/fx WORKDIR /usr/local/src/fx
RUN Rscript packages.R RUN R -f packages.R --save
CMD ["Rscript", "app.R"] CMD ["Rscript", "app.R"]
EXPOSE 3000 EXPOSE 3000

View File

@@ -1,2 +1,2 @@
install.packages(c("jug")) install.packages(c("jug", "jsonlite"), repos="http://cran.us.r-project.org", dependencies=TRUE)
install.packages(c("jsonlite")) # install.packages(c("jsonlite"), repos="http://cran.us.r-project.org", dependencies=TRUE)