-
Notifications
You must be signed in to change notification settings - Fork 10
/
Dockerfile
39 lines (33 loc) · 928 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
#Use rocker/tidyverse as base image -
FROM rocker/tidyverse:4.1
#install necessary R packages
RUN apt-get update -qq && apt-get --no-install-recommends install \
&& install2.r --error \
--deps TRUE \
readr \
here \
knitr \
pracma \
broom \
infer \
docopt \
kableExtra
#install miniconda3 python distribution
RUN wget \
https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh \
&& mkdir /root/.conda \
&& bash Miniconda3-latest-Linux-x86_64.sh -b \
&& rm -f Miniconda3-latest-Linux-x86_64.sh
#create python path
ENV PATH="/root/miniconda3/bin:${PATH}"
#add necessary conda-forge channel
RUN conda config --append channels conda-forge
#install python packages
RUN conda install -y -c anaconda \
docopt=0.6.* \
pandas=1.3.* \
altair=4.1.* \
altair_viewer=0.4.* \
altair_saver=0.5.*
#install pandoc correctly
RUN conda install -c conda-forge pandoc=2.16.*