Skip to content

Commit

Permalink
Split R packages install for debug
Browse files Browse the repository at this point in the history
  • Loading branch information
fxi committed Jul 5, 2024
1 parent a6b42f2 commit 4b88306
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 13 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/docker-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: Build and Push Docker Image
on:
push:
branches:
- main
- docker

jobs:
build:
Expand Down
18 changes: 6 additions & 12 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,25 +1,19 @@
FROM r-base:4.4.1

# Update and install system dependencies
RUN apt-get update && apt-get install -y \
build-essential \
libcurl4-openssl-dev \
libssl-dev \
libxml2-dev \
&& rm -rf /var/lib/apt/lists/*

ENV R_PACKAGES="\
'unige-geohealth/inAccessMod@438473e',\
'doParallel',\
'snow',\
'foreach',\
'purrr',\
'dplyr',\
'sf',\
'terra'\
"

RUN R -e "install.packages('pak')"
RUN R -e "pak::pkg_install(c(${R_PACKAGES}))"
RUN R -e "pak::pkg_install('unige-geohealth/inAccessMod@438473e')"
RUN R -e "pak::pkg_install('purrr')"
RUN R -e "pak::pkg_install('dplyr')"
RUN R -e "pak::pkg_install('sf')"
RUN R -e "pak::pkg_install('terra')"

WORKDIR /run

Expand Down

0 comments on commit 4b88306

Please sign in to comment.