-
Notifications
You must be signed in to change notification settings - Fork 35
/
Copy pathDockerfile
42 lines (35 loc) · 1.31 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
# Docker file for the breast cancer predictor project
# Tiffany Timbers, Jan, 2020
# use rocker/tidyverse as the base image and
FROM rocker/tidyverse
# install R packages
RUN apt-get update -qq && apt-get -y --no-install-recommends install \
&& install2.r --error \
--deps TRUE \
cowsay \
here \
feather \
ggridges \
ggthemes \
e1071 \
caret
# install the kableExtra package using install.packages
RUN Rscript -e "install.packages('kableExtra')"
# install the anaconda distribution of python
RUN wget --quiet https://repo.anaconda.com/archive/Anaconda3-2019.10-Linux-x86_64.sh -O ~/anaconda.sh && \
/bin/bash ~/anaconda.sh -b -p /opt/conda && \
rm ~/anaconda.sh && \
ln -s /opt/conda/etc/profile.d/conda.sh /etc/profile.d/conda.sh && \
echo ". /opt/conda/etc/profile.d/conda.sh" >> ~/.bashrc && \
echo "conda activate base" >> ~/.bashrc && \
find /opt/conda/ -follow -type f -name '*.a' -delete && \
find /opt/conda/ -follow -type f -name '*.js.map' -delete && \
/opt/conda/bin/conda clean -afy && \
/opt/conda/bin/conda update -n base -c defaults conda
# put anaconda python in path
ENV PATH="/opt/conda/bin:${PATH}"
# install docopt python package
RUN conda install -y -c anaconda \
docopt \
requests
RUN conda install -y -c conda-forge feather-format