-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #26 from uc-cdis/chore/r-3.6
Chore/r 3.6
- Loading branch information
Showing
1 changed file
with
46 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
## Dockerfile for rocker/tidyverse with trial base-layer security improvements, based on Rstudio tidyverse image with additional upgrades ### | ||
FROM rocker/rstudio:3.6.0 | ||
RUN apt-get update -qq && apt-get -y --no-install-recommends install \ | ||
libxml2-dev \ | ||
libcairo2-dev \ | ||
libsqlite3-dev \ | ||
libmariadbd-dev \ | ||
libmariadb-client-lgpl-dev \ | ||
unixodbc-dev \ | ||
libssl-dev \ | ||
libssh2-1-dev \ | ||
libpq-dev \ | ||
&& install2.r --error \ | ||
--deps TRUE \ | ||
tidyverse \ | ||
dplyr \ | ||
devtools \ | ||
formatR \ | ||
remotes \ | ||
selectr \ | ||
caTools \ | ||
BiocManager | ||
RUN wget https://www.openssl.org/source/openssl-1.1.1a.tar.gz && \ | ||
tar -zxf openssl-1.1.1a.tar.gz && cd openssl-1.1.1a && \ | ||
./config && \ | ||
apt install make gcc && \ | ||
make && \ | ||
make test && \ | ||
mv /usr/bin/openssl ~/tmp && \ | ||
make install && \ | ||
ln -s /usr/local/bin/openssl /usr/bin/openssl && \ | ||
sudo ldconfig | ||
RUN groupadd -r -g 1001 user && useradd -r -g user -u 1001 user | ||
WORKDIR /home/user | ||
EXPOSE 8787 | ||
CMD ["/init"] | ||
|
||
RUN usermod -a -G users rstudio | ||
RUN echo '#!/usr/bin/with-contenv bash \ | ||
\n## load /etc/environment vars first: \ | ||
\n for line in $( cat /etc/environment ) ; do export $line ; done \ | ||
\n cp /etc/rstudio/rserver.conf /etc/rstudio/rserver.conf.bak \ | ||
\n cat /etc/rstudio/rserver.conf.bak | grep -v www-frame-origin > /etc/rstudio/rserver.conf \ | ||
\n echo www-frame-origin=${WWW_FRAME_ORIGIN} >> /etc/rstudio/rserver.conf \ | ||
\n exec /usr/lib/rstudio-server/bin/rserver --server-daemonize 0' \ | ||
> /etc/services.d/rstudio/run |