-
Notifications
You must be signed in to change notification settings - Fork 2
/
Dockerfile
30 lines (24 loc) · 892 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
## Start with the tidyverse docker image
FROM rocker/verse:3.5.3
MAINTAINER "Sam Abbott" contact@samabbott.co.uk
RUN apt-get update \
&& apt-get install -y \
libudunits2-dev \
libqpdf-dev \
libnetcdf-dev \
&& apt-get clean
## Add in tinytex install in docker
RUN wget -qO- \
"https://github.com/yihui/tinytex/raw/master/tools/install-unx.sh" | \
sh -s - --admin --no-path \
&& mv ~/.TinyTeX /opt/TinyTeX \
&& /opt/TinyTeX/bin/*/tlmgr path add \
&& tlmgr install metafont mfware inconsolata tex ae parskip listings \
&& tlmgr path add \
&& Rscript -e "source('https://install-github.me/yihui/tinytex'); tinytex::r_texmf()" \
&& chown -R root:staff /opt/TinyTeX \
&& chmod -R g+w /opt/TinyTeX \
&& chmod -R g+wx /opt/TinyTeX/bin \
ADD . /home/rstudio/thesis
WORKDIR /home/rstudio/thesis
RUN Rscript -e "install.packages('packrat'); packrat::restore()"