RUN echo"StrictHostKeyChecking no">>/etc/ssh/ssh_config
RUN npm config -gset unsafe-perm
RUN npm config -gset registry https://registry.npm.taobao.org
COPY .npm /root/.npm
RUN R CMD javareconf JAVA_HOME=${JAVA_HOME}JAVA=${JAVA_HOME}/bin/java JAVAC=${JAVA_HOME}/bin/javac JAVAH=${JAVA_HOME}/bin/javah JAR=${JAVA_HOME}/bin/jar
RUN echo"install.packages(\"RJDBC\", repos=\"http://cran.us.r-project.org\")"|R --no-save