-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
49 lines (37 loc) · 1.41 KB
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
FROM jupyter/r-notebook:66c99628f4b8
RUN python3 -m pip install jupyter-rsession-proxy
RUN cd /tmp/ && \
git clone --depth 1 https://github.com/jupyterhub/jupyter-server-proxy && \
cd jupyter-server-proxy/jupyterlab-server-proxy && \
npm install && npm run build && jupyter labextension link . && \
npm run build && jupyter lab build
USER root
# install Rstudio dependencies
RUN apt-get -qq update --yes && \
apt-get -qq install --yes \
libapparmor1 \
libedit2 \
lsb-release \
libssl1.0.0 \
libgdal-dev \
libproj-dev \
psmisc \
libssl-dev \
libcurl4-openssl-dev \
libxml2-dev
# Install some R libraries that aren't in the debs
COPY install_packages.R /tmp/install_packages.R
RUN Rscript /tmp/install_packages.R
ENV RSTUDIO_URL https://download2.rstudio.org/rstudio-server-1.1.453-amd64.deb
ENV RSTUDIO_CHECKSUM 3c546fa9067f48ed1a342f810fca8be6
# install rstudio
RUN curl --silent --location --fail ${RSTUDIO_URL} > /tmp/rstudio.deb && \
echo "${RSTUDIO_CHECKSUM} /tmp/rstudio.deb" | md5sum -c - && \
dpkg -i /tmp/rstudio.deb && \
rm /tmp/rstudio.deb
USER $NB_USER
ENV PATH=$PATH:/usr/lib/rstudio-server/bin
ENV LD_LIBRARY_PATH="/usr/lib/R/lib:/lib:/usr/lib/x86_64-linux-gnu:/usr/lib/jvm/java-7-openjdk-amd64/jre/lib/amd64/server:/opt/conda/lib/R/lib"
USER jovyan
COPY requirements.txt /tmp/requirements.txt
RUN pip install --no-cache-dir -r /tmp/requirements.txt