Skip to content

Commit

Permalink
Add now.json and Dockerfile for building HTML book and deploy to now.…
Browse files Browse the repository at this point in the history
…sh (#36)

Close #35
  • Loading branch information
soleo authored and yihui committed Oct 22, 2018
1 parent 8ca5ca1 commit 4e34630
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
7 changes: 7 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
FROM conoria/alpine-r-bookdown

WORKDIR /usr/src

COPY . .

RUN R -q -e 'bookdown::render_book("index.Rmd", "bookdown::gitbook")' && mv _book /public
4 changes: 4 additions & 0 deletions now.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"type": "static",
"public": true
}

0 comments on commit 4e34630

Please sign in to comment.