From 7c3475e7af9f6bd25965a87dea275bd70bdb4db6 Mon Sep 17 00:00:00 2001 From: Alexandru Mahmoud Date: Mon, 9 Dec 2024 13:58:29 -0500 Subject: [PATCH] Handle dh-r getting autoremoved in later script --- builder.Dockerfile | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/builder.Dockerfile b/builder.Dockerfile index 4e963c9..3c21960 100644 --- a/builder.Dockerfile +++ b/builder.Dockerfile @@ -2,4 +2,10 @@ ARG BASE_IMAGE=ghcr.io/bioconductor/r2u ARG UBUNTU_TAG=jammy FROM ${BASE_IMAGE}:${UBUNTU_TAG} AS base ARG BIOC_VERSION=3.19 -RUN apt update -qq && apt install git-all build-essential binutils lintian debhelper dh-make devscripts curl vim dh-r -y && curl -O https://raw.githubusercontent.com/Bioconductor/bioconductor_docker/devel/bioc_scripts/install_bioc_sysdeps.sh && sed -i 's/install.packages("BiocManager"/bspm::disable(); install.packages("BiocManager"/g' install_bioc_sysdeps.sh && sed -i 's/BiocManager::install(version=/bspm::disable(); BiocManager::install(version=/g' install_bioc_sysdeps.sh && bash install_bioc_sysdeps.sh $BIOC_VERSION || ( sed -i 's/--break-system-packages//g' install_bioc_sysdeps.sh && bash install_bioc_sysdeps.sh $BIOC_VERSION ) +RUN apt update -qq &&\ + apt install -y git-all build-essential binutils lintian dh-make devscripts curl vim &&\ + curl -O https://raw.githubusercontent.com/Bioconductor/bioconductor_docker/devel/bioc_scripts/install_bioc_sysdeps.sh &&\ + sed -i 's/install.packages("BiocManager"/bspm::disable(); install.packages("BiocManager"/g' install_bioc_sysdeps.sh &&\ + sed -i 's/BiocManager::install(version=/bspm::disable(); BiocManager::install(version=/g' install_bioc_sysdeps.sh &&\ + bash install_bioc_sysdeps.sh $BIOC_VERSION || ( sed -i 's/--break-system-packages//g' install_bioc_sysdeps.sh && bash install_bioc_sysdeps.sh $BIOC_VERSION ) &&\ + apt install -y debhelper dh-r