-
Notifications
You must be signed in to change notification settings - Fork 88
Expand file tree
/
Copy pathDockerfile
More file actions
24 lines (17 loc) · 701 Bytes
/
Dockerfile
File metadata and controls
24 lines (17 loc) · 701 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
# get the base image, the rocker/verse has R, RStudio and pandoc
FROM rocker/verse:3.6.0
# required
MAINTAINER Ben Marwick <benmarwick@gmail.com>
COPY . /rrtools
# 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
&& sudo R -e "devtools::install('/rrtools', dep=TRUE)" \
# make project directory writable to save images and other output
&& sudo chmod a+rwx -R rrtools \
# render the manuscript into a html output
&& sudo R -e "setwd('/rrtools/analysis/paper'); rmarkdown::render('paper.Rmd')"