Switch branches/tags
Nothing to show
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
36 lines (21 sloc) 1.28 KB
# get the base image, this one has R, RStudio and pandoc
FROM rocker/verse:3.3.2
# required
MAINTAINER Ben Marwick <>
COPY . /mjb1989excavationpaper
# go into the repo directory
RUN apt-get update \
&& sudo apt-get install r-cran-rjags -y \
&& . /etc/environment \
# build this compendium package, get deps from MRAN
# set date here manually
&& R -e "options(repos=''); devtools::install('/mjb1989excavationpaper', dep=TRUE)" \
# render the manuscript into a docx
&& R -e "rmarkdown::render('/mjb1989excavationpaper/vignettes/analysis-of-dates-lithics-shell-from-1989-excavations.Rmd')"
# Get my package source files from github and download onto Docker. The built package that we already got above is no good because it doesn't have the vignette directory in the same structure as the package source
RUN git clone
# to build this image:
# docker build -t benmarwick/mjb1989excavationpaper
# to run this container:
# docker -dp 8787:8787 benmarwick/mjb1989excavationpaper
# then open broswer at localhost:8787 or