Skip to content

Commit

Permalink
Another fix to dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
Robinlovelace committed Sep 21, 2024
1 parent 2cd6dbf commit ead3bd3
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions pixi-r/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,11 @@ FROM ghcr.io/prefix-dev/pixi:bullseye

# Install dependencies using pixi
RUN pixi global install quarto r r-tidyverse r-sf r-terra r-stars r-tmap r-mlr3 r-remotes r-knitr r-bookdown r-tidygraph r-leaflet r-plotly r-curl r-languageserver r-data.table
RUN pixi run R -e 'remotes::install_github("geocompx/geocompkg", dependencies = TRUE, upgrade = FALSE)'

# ln all /root/.pixi/envs/r/bin and /root/.pixi/bin to /usr/local/bin:
RUN ln -s /root/.pixi/envs/r/bin/* /usr/local/bin
RUN ln -s /root/.pixi/bin/* /usr/local/bin
RUN ln -sf /root/.pixi/envs/r/bin/* /usr/local/bin
RUN ln -sf /root/.pixi/bin/* /usr/local/bin

RUN R -e 'remotes::install_github("geocompx/geocompkg", dependencies = TRUE, upgrade = FALSE)'
# Set the default repos to cloud.r-project.org:
RUN echo 'options(repos = c(CRAN = "https://cloud.r-project.org/"))' >> /root/.Rprofile

0 comments on commit ead3bd3

Please sign in to comment.