-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
17 lines (12 loc) · 1.08 KB
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
# This Dockerfile will take a custom image based on rocker/tidyverse
# Depending on the output, you need to change line 64 on index.Rmd. For gitbook it should be "html", for Word, "pandoc" and for PDF, "latex"
# Note that extra headers and rows do not work in Word, so some of the tables won't render properly. Use PDF or gitbook to see them how I intended!
FROM richardpilbery/sprained
RUN cd /home/rstudio && wget https://github.com/RichardPilbery/SPRAINED/archive/master.tar.gz && tar xvfz master.tar.gz && rm master.tar.gz && chown -R rstudio:rstudio /home/rstudio/SPRAINED-master && chmod 755 /home/rstudio/SPRAINED-master
# Note to self: Had to reinstall tinytex to get PDF file generation to work: https://yihui.name/tinytex/
# To install the image
# 1. Create a new directory and place this Dockerfile inside
# 2. Enter the command docker build ./
# 3. Take a note of the IMAGEID...the command line will have a comment like: 'Successfully built IMAGEID'
# 4. Run this command: docker run --rm -p 127.0.0.1:8787:8787 -e DISABLE_AUTH=true IMAGEID
# 5. Point your browser to http://127.0.0.1:8787