-
Notifications
You must be signed in to change notification settings - Fork 13
Expand file tree
/
Copy pathDockerfile
More file actions
21 lines (14 loc) · 859 Bytes
/
Dockerfile
File metadata and controls
21 lines (14 loc) · 859 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
# base image available for amd64 and arm64 architectures.
# https://github.com/ContinuumIO/docker-images/blob/master/miniconda3/debian/Dockerfile
FROM continuumio/miniconda3:4.12.0
RUN apt update && apt install -y make
# Override miniconda python installation
RUN conda install -y python=3.10 matplotlib=3.5 pandas=1.4 pandoc=2
RUN pip install docopt-ng==0.8.*
# R
RUN apt-get install r-base r-base-dev -y
RUN Rscript -e "install.packages(c('rmarkdown', 'here'), repos = 'https://mran.revolutionanalytics.com/snapshot/2022-12-05')"
# Another strategy to pin R package versions
# RUN Rscript -e "install.packages('remotes')""
# RUN Rscript -e "remotes::install_version('here', version = '1.0.1', repos = 'http://cran.us.r-project.org')"
# RUN Rscript -e "remotes::install_version('rmarkdown', version = '2.16', repos = 'http://cran.us.r-project.org')"