Skip to content

Commit

Permalink
Update buildbook image, fix #83
Browse files Browse the repository at this point in the history
  • Loading branch information
Robinlovelace committed Oct 4, 2024
1 parent 92b8609 commit 0eb7d94
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions buildbook/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,3 +1,13 @@
FROM geocompr/geocompr:suggests
RUN Rscript -e 'bookdown::render_book("index.Rmd", output_format = "bookdown::gitbook", clean = FALSE)'

RUN su rstudio && \
cd /home/rstudio && \
wget https://github.com/geocompx/geocompr/archive/main.zip && \
unzip main.zip && \
mv geocompr-main /home/rstudio/geocompr && \
rm main.zip
RUN Rscript -e 'bookdown::render_book("/home/rstudio/geocompr", output_format = "bookdown::gitbook", clean = FALSE)'
RUN chown -R rstudio:rstudio /home/rstudio && \
find /home/rstudio -type d -exec chmod 755 {} \; && \
find /home/rstudio -type f -exec chmod 644 {} \;
USER rstudio
WORKDIR /home/rstudio/geocompr

0 comments on commit 0eb7d94

Please sign in to comment.