r-builds/builder/Dockerfile.alpine-324
pat-s a2196ddc49
feat: add alpine-3.24 build config
Mirror the alpine-3.23 setup across the builder Dockerfile/package,
docker-compose service, Makefile/Justfile targets, and the CI matrix.
2026-06-12 15:45:39 +02:00

26 lines
1 KiB
Text

FROM reg.devxy.io/docker.io/library/alpine:3.24
ENV OS_IDENTIFIER alpine-324
RUN set -x \
&& apk add -q R-dev curl ca-certificates bash g++ tzdata openjdk17 texmf-dist texlive-full tar sed patch tcl tk tk-dev xvfb libdeflate libdeflate-dev
# Install s5cmd for S3 uploads (much faster than AWS CLI)
RUN ARCH=$(uname -m); if [ "$ARCH" = "x86_64" ]; then S5CMD_ARCH="64bit"; else S5CMD_ARCH="arm64"; fi && \
curl -sL "https://github.com/peak/s5cmd/releases/download/v2.3.0/s5cmd_2.3.0_Linux-${S5CMD_ARCH}.tar.gz" | tar xz -C /usr/local/bin s5cmd
RUN curl -LO "https://github.com/goreleaser/nfpm/releases/download/v2.39.0/nfpm_2.39.0_$(arch).apk" && \
apk add --allow-untrusted "./nfpm_2.39.0_$(arch).apk" && \
rm "nfpm_2.39.0_$(arch).apk"
RUN chmod 0777 /opt
# Override the default pager used by R
ENV PAGER /usr/bin/pager
ENV CONFIGURE_OPTIONS "--enable-R-shlib --with-tcltk --enable-memory-profiling --with-x=no --with-blas --with-lapack"
COPY package.alpine-324 /package.sh
COPY build.sh .
COPY patches /patches
ENTRYPOINT ./build.sh