-
Notifications
You must be signed in to change notification settings - Fork 1
/
Dockerfile
19 lines (16 loc) · 830 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
# get the base image, the rocker/verse has R, RStudio and pandoc
FROM rocker/verse:3.6.2
# required
MAINTAINER Maggie Weatherly <[email protected]>
COPY . /delafuente-rhodes-solorio-srivastava-weatherly-replication-project
# go into the repo directory
RUN . /etc/environment \
# Install linux depedendencies here
# e.g. need this for ggforce::geom_sina
&& sudo apt-get update \
&& sudo apt-get install libudunits2-dev -y \
# build this compendium package
&& R -e "devtools::install('/delafuente-rhodes-solorio-srivastava-weatherly-replication-project', dep=TRUE)" \
# render the manuscript into a docx, you'll need to edit this if you've
# customised the location and name of your main Rmd file
&& R -e "rmarkdown::render('/delafuente-rhodes-solorio-srivastava-weatherly-replication-project/analysis/paper.Rmd')"