Skip to content

Commit

Permalink
Merge pull request #69 from spentelow/main
Browse files Browse the repository at this point in the history
Add documentation to dockerfile.
  • Loading branch information
AnitaLi-0371 authored Dec 13, 2020
2 parents 4af3ff6 + f1cd7fa commit e4b0400
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,8 +1,12 @@
# Docker file for reproducing results and analysis of project located at:
# https://github.com/UBC-MDS/out_of_this_world
# Author: Chirag Rank
# Date: December-11-2020

# using the rocker/r-verse image as the base
FROM rocker/r-ver:4.0.0

# Add tex functionality to image
ENV PATH=$PATH:/opt/TinyTeX/bin/x86_64-linux/

RUN apt-get update \
Expand Down Expand Up @@ -50,6 +54,7 @@ RUN apt-get update \
&& rm -rf /tmp/downloaded_packages/ /tmp/*.rds /var/lib/apt/lists/*


# install miniconda
RUN wget --quiet https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh && \
bash Miniconda3-latest-Linux-x86_64.sh -b && \
echo "export PATH='/root/miniconda3/bin:$PATH'">> ~/.bashrc && \
Expand All @@ -58,13 +63,15 @@ RUN wget --quiet https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86

ENV PATH /root/miniconda3/bin:$PATH

# install conda packages required for analysis
RUN conda config --append channels conda-forge && \
conda install -y docopt==0.6.2 \
feather-format==0.4.1 \
lxml==4.6.1 \
pandas==1.1.3 && \
conda update --all

# Add makefile2graph to generate makefile image
RUN git clone https://github.com/lindenb/makefile2graph.git && \
make -C makefile2graph/. && \
cp makefile2graph/makefile2graph ../usr/bin && \
Expand Down

0 comments on commit e4b0400

Please sign in to comment.