Commit f91f5cb3 authored by Philippe Grosjean's avatar Philippe Grosjean
Browse files

Update Dockerfile

parent 647a9b2c
Pipeline #246819 passed with stage
in 26 minutes and 9 seconds
......@@ -34,7 +34,10 @@ RUN apt-get update --fix-missing && \
apt-get purge && \
apt-get clean && \
apt autoremove --yes && \
rm -rf /var/lib/apt/lists/*
rm -rf /var/lib/apt/lists/* && \
# reset original user:group for site-library so that rstudio user is forced
# to install its R packages in ~/... instead from within RStudio
chown root:staff /usr/local/lib/R/site-library
# customize RStudio
COPY .config/dictionaries/* /usr/share/hunspell/
......@@ -69,10 +72,7 @@ COPY install.R /tmp/
COPY requirements.txt /tmp/
RUN R -f /tmp/install.R && \
R --quiet -e "install.packages('webshot'); webshot::install_phantomjs()" && \
pip3 install -r /tmp/requirements.txt $$ \
# reset original user:group for site-library so that rstudio user is forced
# to install its R packages in ~/... instead from within RStudio
chown root:staff /usr/local/lib/R/site-library
pip3 install -r /tmp/requirements.txt
COPY post-init.sh /post-init.sh
ENTRYPOINT [ "/tini", "--", "/entrypoint.sh" ]
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment