images
This commit is contained in:
parent
aea5d9597d
commit
f64db635a0
1 changed files with 25 additions and 34 deletions
|
|
@ -41,8 +41,8 @@ RUN bash -c 'echo -e "options(crayon.enabled = TRUE, Ncpus = ${NCPUS}, future.gl
|
|||
RUN bash -c 'echo -e "PKG_SYSREQS=TRUE\nPKG_SYSREQS_VERBOSE=TRUE" > ~/.Renviron'
|
||||
|
||||
### INSTALL R
|
||||
RUN curl -O https://devxy-r-builds.s3.eu-central-2.amazonaws.com/alpine320/r-${R_VERSION}_1_$(arch).apk
|
||||
RUN apk add --allow-untrusted r-${R_VERSION}_1_$(arch).apk && rm r-${R_VERSION}_1_$(arch).apk
|
||||
RUN curl -O "https://devxy-r-builds.s3.eu-central-2.amazonaws.com/alpine320/r-${R_VERSION}_1_$(arch).apk"
|
||||
RUN apk add --allow-untrusted "r-${R_VERSION}_1_$(arch).apk" && rm "r-${R_VERSION}_1_$(arch).apk"
|
||||
|
||||
RUN R -q -e 'install.packages("remotes", repo = "cloud.r-project.org"); remotes::install_github("pat-s/pak@alpine")'
|
||||
|
||||
|
|
@ -52,7 +52,7 @@ RUN R -q -e 'pak::pak(c("DBI", "R6", "RPostgres", "Rcpp", "askpass", "base64enc"
|
|||
|
||||
COPY . .
|
||||
# remove secrets from COPY
|
||||
RUN rm /.Renviron /.envrc
|
||||
RUN touch /.Renviron /.envrc && rm /.Renviron /.envrc
|
||||
RUN R CMD INSTALL . && rm -rf r-pkg-binaries
|
||||
|
||||
CMD ["/bin/bash"]
|
||||
Loading…
Reference in a new issue