generated from 2i2c-org/hub-user-image-template
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Dockerfile
44 lines (37 loc) · 1015 Bytes
/
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
FROM rocker/binder:4.3.2
USER root
COPY requirements.txt /tmp/requirements.txt
RUN pip install --no-cache -r /tmp/requirements.txt
# Install packages needed for quarto knitting to PDF
RUN tlmgr install \
koma-script \
mdwtools \
tikzfill \
bookmark
USER ${NB_USER}
# Install learnr and other requested packages in https://2i2c.freshdesk.com/a/tickets/741
# mosaic installed per https://2i2c.freshdesk.com/a/tickets/973
RUN install2.r --skipinstalled \
learnr \
XLConnect \
ggvis \
dygraphs \
DT \
network3D \
threeJS \
lme4 \
randomForest \
multcomp \
vcd \
glmnet \
caret \
ggmap \
quantmod \
mosaic \
&& rm -rf /tmp/downloaded_packages
# Set working directory so Jupyter knows where to start
WORKDIR /home/rstudio
# Set SHELL so Jupyter launches /bin/bash, not /bin/sh
# /bin/sh doesn't have a lot of interactive features (like tab complete or functional arrow keys)
# that people have come to expect.
ENV SHELL=/bin/bash