try fixing images build_args

This commit is contained in:
Patrick Schratz 2024-09-05 10:44:25 +02:00
commit 9c5337be1e
Signed by: pat-s
GPG key ID: 3C6318841EF78925

View file

@ -3,6 +3,8 @@ FROM alpine:3.20
ENV PATH=/opt/R/4.4.1/bin:$PATH
ENV TZ="Europe/Berlin"
ARG GITHUB_PAT
# Background: JAGS needs lapack & lapack-dev but these conflict with openblas-dev which is required by R-dev
# Solution: first compile JAGS, then remove lapack & lapack-dev again
RUN apk add -q --no-cache curl tar make lapack lapack-dev blas blas-dev gcc gfortran g++ htop git
@ -17,7 +19,7 @@ RUN apk del lapack lapack-dev
# libxml2-dev: xml2
# libgit2-dev: gert
# libpq-dev: RPostgres
RUN apk add -q --no-cache R-dev curl ca-certificates bash g++ tzdata openjdk17 tar sed patch openblas-dev pkgconfig linux-headers ccache libxml2-dev libgit2-dev
RUN apk add -q --no-cache R-dev curl ca-certificates bash g++ tzdata openjdk17 tar sed patch openblas-dev pkgconfig linux-headers ccache libxml2-dev libgit2-dev libpq-dev
# https://github.com/RcppCore/Rcpp/issues/448#issuecomment-220148774
# LDFLAGS+=-fPIC -> arrow (https://github.com/r-hub/r-minimal/blob/main/examples/arrow/Dockerfile)