remove secrets from COPY
This commit is contained in:
parent
989f7766ed
commit
aea5d9597d
1 changed files with 31 additions and 17 deletions
|
|
@ -1,7 +1,8 @@
|
|||
FROM redhat/ubi9
|
||||
|
||||
ARG R_VERSION=4.4.1
|
||||
ARG RED_HAT_DEV_PW
|
||||
ENV PATH=/opt/R/4.4.1/bin:$PATH
|
||||
ENV PATH=/opt/R/${R_VERSION}/bin:$PATH
|
||||
ENV TZ="Europe/Berlin"
|
||||
|
||||
ENV ARCH=arm64
|
||||
|
|
@ -24,8 +25,8 @@ RUN dnf install -y -q make lapack-devel git gcc gcc-c++ fontconfig-devel fribidi
|
|||
RUN curl -q -L -O https://sourceforge.net/projects/mcmc-jags/files/JAGS/4.x/Source/JAGS-4.3.2.tar.gz && tar -xzf JAGS-4.3.2.tar.gz && cd JAGS-4.3.2 && ./configure --enable-silent-rules && make 2>&1 >/dev/null && rm -rf JAGS-4.3.2.tar.gz JAGS-4.3.2 && cd ..
|
||||
|
||||
### INSTALL R
|
||||
RUN curl -O https://devxy-r-builds.s3.eu-central-2.amazonaws.com/el9/R-4.4.1-1-1.aarch64.rpm
|
||||
RUN dnf install -q -y R-4.4.1-1-1.aarch64.rpm
|
||||
RUN curl -O https://devxy-r-builds.s3.eu-central-2.amazonaws.com/el9/R-${R_VERSION}-1-1.aarch64.rpm
|
||||
RUN dnf install -q -y R-${R_VERSION}-1-1.aarch64.rpm
|
||||
RUN R -q -e 'install.packages("pak", repos = sprintf("https://r-lib.github.io/p/pak/stable/%s/%s/%s", .Platform$pkgType, R.Version()$os, R.Version()$arch))'
|
||||
|
||||
# Makevars
|
||||
|
|
@ -40,6 +41,8 @@ RUN bash -c 'echo -e "PKG_SYSREQS = TRUE\nPKG_SYSREQS_VERBOSE = TRUE" > /root/.R
|
|||
RUN R -q -e 'pak::pak(c("DBI", "R6", "RPostgres", "Rcpp", "askpass", "base64enc", "bit64", "bit", "blob", "callr", "cli", "credentials", "curl", "data.table", "digest", "dplyr", "fansi", "fs", "future.apply", "future", "generics", "gert", "globals", "glue", "hms", "httr", "jsonlite", "lgr", "lifecycle", "listenv", "lubridate", "magrittr", "mime", "openssl", "parallelly", "paws.common", "paws.storage", "pillar", "pkgbuild", "pkgconfig", "processx", "progressr", "ps", "purrr", "rlang", "rstudioapi","s3fs", "stringi", "stringr", "sys", "tibble", "tidyselect", "timechange", "utf8", "vctrs", "withr", "xml2", "zip", "codetools", "RSQLite", "cachem", "crayon", "debugme", "fastmap", "memoise", "pat-s/cranlike@s3", "pat-s/desc@description-from-remote"))'
|
||||
|
||||
COPY . .
|
||||
# remove secrets from COPY
|
||||
RUN rm /.Renviron /.envrc
|
||||
RUN R CMD INSTALL . && rm -rf r-pkg-binaries
|
||||
|
||||
CMD ["/bin/bash"]
|
||||
Loading…
Reference in a new issue