From faee2bd5401738c77b9deb06734fbaf7cce26717 Mon Sep 17 00:00:00 2001 From: Agam Date: Tue, 1 Sep 2020 00:25:08 -0400 Subject: [PATCH] updated Dockerfile with git and rapids_example.sql --- Dockerfile | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 904bf988..3bb4b72e 100644 --- a/Dockerfile +++ b/Dockerfile @@ -15,6 +15,7 @@ RUN apt update && apt install -y r-base RUN apt install -y pandoc RUN apt install -y git RUN apt-get update && apt-get install -y vim +RUN apt update && apt install -y unzip ENV LANG=C.UTF-8 LC_ALL=C.UTF-8 ENV PATH /opt/conda/bin:$PATH @@ -42,6 +43,11 @@ WORKDIR /rapids RUN conda env create -f environment.yml -n rapids RUN Rscript --vanilla -e 'install.packages("rmarkdown", repos="http://cran.us.r-project.org")' RUN R -e 'renv::restore()' -COPY rapids_example.sql ./data/external +ADD https://osf.io/587wc/download data/external +RUN mv data/external/download data/external/rapids_example.sql.zip +RUN unzip data/external/rapids_example.sql.zip +RUN cp rapids_example.sql data/external/rapids_example.sql +RUN rm data/external/rapids_example.sql.zip +RUN rm rapids_example.sql RUN echo "source activate rapids" > ~/.bashrc ENV PATH /opt/conda/envs/rapids/bin:$PATH \ No newline at end of file