Skip to content

Commit

Permalink
try again
Browse files Browse the repository at this point in the history
  • Loading branch information
klainfo committed May 3, 2019
1 parent cae4834 commit 326d9e8
Showing 1 changed file with 11 additions and 20 deletions.
31 changes: 11 additions & 20 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,17 @@ RUN apt-get update && \
apt-get clean && \
rm -rf /var/lib/apt/lists/*

RUN install2.r --error \
--deps TRUE \
tidyverse \
dplyr \
devtools \
formatR \
remotes \
selectr \
caTools \
BiocManager

# Create a venv dir owned by unprivileged user & set up notebook in it
# This allows non-root to install python libraries if required
RUN mkdir -p ${VENV_DIR} && chown -R ${NB_USER} ${VENV_DIR}
Expand All @@ -36,26 +47,6 @@ RUN python3 -m venv ${VENV_DIR} && \
jupyter nbextension install --sys-prefix --py nbrsessionproxy && \
jupyter nbextension enable --sys-prefix --py nbrsessionproxy

RUN apt-get update -qq && apt-get -y --no-install-recommends install \
libxml2-dev \
libcairo2-dev \
libsqlite3-dev \
libmariadbd-dev \
libmariadb-client-lgpl-dev \
libpq-dev \
libssh2-1-dev \
unixodbc-dev \
&& install2.r --error \
--deps TRUE \
tidyverse \
dplyr \
devtools \
formatR \
remotes \
selectr \
caTools \
BiocManager

RUN R --quiet -e "install.packages('devtools', dependencies=TRUE)" && \
R --quiet -e "devtools::install_github('IRkernel/IRkernel')" && \
R --quiet -e "IRkernel::installspec(prefix='${VENV_DIR}')"
Expand Down

0 comments on commit 326d9e8

Please sign in to comment.