-
-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathDockerfile
More file actions
17 lines (17 loc) · 733 Bytes
/
Dockerfile
File metadata and controls
17 lines (17 loc) · 733 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
FROM geocompr/geocompr:latest
RUN --mount=type=secret,id=GITHUB_PAT \
cat /run/secrets/GITHUB_PAT
RUN echo GITHUB_PAT=/run/secrets/GITHUB_PAT >> ~/.Renviron
RUN R -e "remotes::install_github('geocompr/geocompkg', upgrade = TRUE, dependencies = TRUE, force = TRUE)"
RUN su rstudio && \
cd /home/rstudio && \
wget https://github.com/Robinlovelace/geocompr/archive/main.zip && \
unzip main.zip && \
mv geocompr-main /home/rstudio/geocompr && \
rm main.zip
RUN chown -Rv rstudio /home/rstudio/geocompr
# Set RStudio preferences
# No inline code:
RUN echo '{' >> /etc/rstudio/rstudio-prefs.json
RUN echo ' "rmd_chunk_output_inline": false' >> /etc/rstudio/rstudio-prefs.json
RUN echo '}' >> /etc/rstudio/rstudio-prefs.json