-
Notifications
You must be signed in to change notification settings - Fork 2
/
Dockerfile
53 lines (45 loc) · 1.47 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
50
51
52
53
# Docker file for newyork_restaurant_grading project
# author: Lauren Zung
# date: 2022-12-09
#use continuumio/miniconda3 as the base image
FROM continuumio/miniconda3:4.12.0
# Update list of available software packages & install make
RUN apt update && apt install -y make
# Override miniconda python installation
RUN conda install -c conda-forge -c defaults \
'python=3.9.*' \
'ipykernel' \
'ipython>=7.15' \
'vega_datasets=0.9.0' \
'altair_saver' \
'selenium<4.3.0' \
'scikit-learn>=1.0' \
'pandas>=1.3.*' \
'requests>=2.24.0' \
'dataframe_image=0.1.1' \
'scipy=1.9.3' \
'matplotlib==3.6.2' \
'matplotlib-base==3.6.2' \
'matplotlib-inline=0.1.6'
# Install dependecies for fixing fonts
RUN rm -fr ~/.cache/matplotlib
RUN conda install -c conda-forge -y mscorefonts
RUN apt install font-manager -y
# Install pip depedencies
RUN pip install \
'docopt-ng==0.8.*' \
'joblib==1.1.*' \
'mglearn' \
'psutil>=5.7.2' \
'vl-convert-python==0.5.*' \
'lxml'
# Install base R and other pre-requisites
RUN apt-get install r-base r-base-dev -y
RUN apt-get install -y libxml2-dev libcurl4-openssl-dev libssl-dev
RUN apt install -y libfontconfig1-dev
# Install R packages
RUN Rscript -e \
"install.packages('tidyverse')" \
"install.packages('kableExtra')" \
"install.packages(c('rmarkdown', 'here'), repos = 'https://mran.revolutionanalytics.com/snapshot/2022-12-05')" \
"install.packages('knitr', version = '1.29.*')"