forked from UBC-MDS/Giant_Pumpkins_Weight_Prediction
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Dockerfile
41 lines (31 loc) · 1.34 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
# Dockerfile for Giant Pumpkin Weight Prediction
# author: Mahsa Sarafrazi, Rowan Sivanandam, Shiva Jena, and Vanessa Yuen
# date: 2021-12-08
# Use rocker/tidyverse as the Base Image
FROM rocker/tidyverse@sha256:d0cd11790cc01deeb4b492fb1d4a4e0d5aa267b595fe686721cfc7c5e5e8a684
# Install R
RUN apt-get update
# Install R Packages
RUN Rscript -e "install.packages('knitr')"
# 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
# Update conda
RUN /opt/conda/bin/conda update conda
# Install Python Packages
RUN /opt/conda/bin/conda install -y -c anaconda \
docopt=0.6.* \
altair=4.1.*
# Install pandoc altair_saver
RUN /opt/conda/bin/conda install -y -c conda-forge pandoc altair_saver
# Put Anaconda Python in PATH
ENV PATH="/opt/conda/bin:${PATH}"
#CMD ["/bin/bash"]