diff --git a/Dockerfile b/Dockerfile index f53f12aea6a3d9169a9b0095f087ab4fce5cec17..9779a1f0c8e95ffa502ee940d2ba6b048416958c 100644 --- a/Dockerfile +++ b/Dockerfile @@ -27,8 +27,8 @@ RUN groupadd -g 1000 $USER && \ COPY *.tar.gz /local/libs COPY rpackages /tmp/rpackages -RUN R -e "library(tools); write_PACKAGES('/local/libs')" && \ - cat /tmp/rpackages | awk '{printf "\x27"$1"\x27,"}' | sed 's/.$//' | xargs -0 -I {} R -e "install.packages(c({}), contriburl='file:///local/libs')" && \ +RUN /usr/local/bin/R -e "library(tools); write_PACKAGES('/local/libs')" && \ + cat /tmp/rpackages | awk '{printf "\x27"$1"\x27,"}' | sed 's/.$//' | xargs -0 -I {} /usr/local/bin/R -e "install.packages(c({}), contriburl='file:///local/libs')" && \ rpm -e --nodeps binutils curl glibc-devel glibc-headers libcurl-devel libX11 libX11-common kernel-headers && \ echo "auth-none=1" >> /etc/rstudio/disable_auth_rserver.conf && \ echo "server-daemonize=0" >> /etc/rstudio/rserver.conf && \ @@ -44,8 +44,8 @@ ENV LC_ALL=en_US.UTF-8 \ USER ${USER} -HEALTHCHECK --start-period=60s CMD rstudio-server status | grep -e "running" +HEALTHCHECK --start-period=60s CMD /usr/local/bin/rstudio-server status | grep -e "running" EXPOSE 8787 -ENTRYPOINT ["rstudio-server", "start"] \ No newline at end of file +ENTRYPOINT ["/usr/local/bin/rstudio-server", "start"] \ No newline at end of file