1- FROM ubuntu:22 .04 as builder
1+ FROM ubuntu:18 .04 as builder
22
33USER root
44
@@ -14,14 +14,30 @@ RUN apt-get -yq update
1414RUN apt-get install -yq --no-install-recommends locales
1515RUN apt-get install -yq --no-install-recommends g++
1616RUN apt-get install -yq --no-install-recommends ca-certificates
17- RUN apt-get install -yq --no-install-recommends cmake
17+ RUN apt-get install -yq --no-install-recommends wget
18+
19+ # install latest cmake so opt-build.sh works - the initial installs will also help install R
20+ RUN apt-get install -yq --no-install-recommends software-properties-common lsb-release
21+ RUN wget -O - https://apt.kitware.com/keys/kitware-archive-latest.asc 2>/dev/null | gpg --dearmor - | tee /etc/apt/trusted.gpg.d/kitware.gpg >/dev/null
22+ RUN apt-add-repository "deb https://apt.kitware.com/ubuntu/ $(lsb_release -cs) main"
23+ RUN apt-get install -yq --no-install-recommends cmake=3.25.2-0kitware1ubuntu18.04.1
24+
1825RUN apt-get install -yq --no-install-recommends make
19- RUN apt-get install -yq --no-install-recommends bzip2
20- RUN apt-get install -yq --no-install-recommends gcc
2126RUN apt-get install -yq --no-install-recommends pkg-config
22- RUN apt-get install -yq --no-install-recommends wget
23- RUN apt-get install -yq --no-install-recommends locales
24- RUN apt-get install -yq --no-install-recommends r-base
27+
28+ # if ubuntu 18.04
29+ RUN apt install -yq --no-install-recommends dirmngr
30+ RUN wget -qO- https://cloud.r-project.org/bin/linux/ubuntu/marutter_pubkey.asc | tee -a /etc/apt/trusted.gpg.d/cran_ubuntu_key.asc
31+ RUN add-apt-repository "deb https://cloud.r-project.org/bin/linux/ubuntu $(lsb_release -cs)-cran40/"
32+ RUN apt-get install -yq --no-install-recommends r-base-core=4.1.3-1.1804.0
33+ RUN apt-mark hold r-base-core
34+ RUN apt-get install -yq --no-install-recommends r-cran-mass=7.3-51.5-2bionic0 r-cran-class=7.3-16-1bionic0 r-cran-nnet=7.3-13-1bionic0
35+ RUN apt-get install -yq --no-install-recommends r-recommended=4.1.3-1.1804.0
36+ RUN apt-get install -yq --no-install-recommends r-base=4.1.3-1.1804.0
37+ RUN apt-mark hold r-base r-recommended
38+ # if ubuntu 22.04
39+ # RUN apt-get install -yq --no-install-recommends r-base=4.1.2-1ubuntu2
40+
2541RUN apt-get install -yq --no-install-recommends zlib1g-dev
2642RUN apt-get install -yq --no-install-recommends libbz2-dev
2743RUN apt-get install -yq --no-install-recommends liblzma-dev
@@ -57,11 +73,11 @@ RUN bash build/opt-build.sh $OPT
5773COPY . .
5874RUN bash build/opt-build-local.sh $OPT
5975
60- FROM ubuntu:22 .04
76+ FROM ubuntu:18 .04
6177
6278LABEL maintainer=
"[email protected] " \
6379 uk.ac.sanger.cgp="Cancer, Ageing and Somatic Mutation, Wellcome Trust Sanger Institute" \
64- version="1.0.0 " \
80+ version="1.0.1 " \
6581 description="nanoseq docker"
6682
6783ENV DEBIAN_FRONTEND=noninteractive
@@ -70,19 +86,21 @@ RUN apt-get install -yq --no-install-recommends \
7086apt-transport-https \
7187locales \
7288curl \
89+ wget \
90+ make \
91+ g++ \
92+ gcc \
93+ gfortran \
94+ libblas-dev \
95+ liblapack-dev \
7396ca-certificates \
7497time \
7598zlib1g \
99+ libz-dev \
76100python3 \
77- r-base \
78- r-cran-ggplot2 \
79- r-cran-data.table \
80- r-cran-epitools \
81- r-cran-gridextra \
82- r-cran-seqinr \
83101libxml2 \
84- libgsl27 \
85- libperl5.34 \
102+ libgsl23 \
103+ libperl5.26 \
86104libcapture-tiny-perl \
87105libfile-which-perl \
88106libpng16-16 \
@@ -92,6 +110,18 @@ unattended-upgrade -d -v && \
92110apt-get remove -yq unattended-upgrades && \
93111apt-get autoremove -yq
94112
113+ RUN apt install -yq --no-install-recommends software-properties-common dirmngr
114+ RUN wget -qO- https://cloud.r-project.org/bin/linux/ubuntu/marutter_pubkey.asc | tee -a /etc/apt/trusted.gpg.d/cran_ubuntu_key.asc
115+ RUN add-apt-repository "deb https://cloud.r-project.org/bin/linux/ubuntu $(lsb_release -cs)-cran40/"
116+ RUN apt-get install -yq --no-install-recommends r-base-core=4.1.3-1.1804.0
117+ RUN apt-mark hold r-base-core
118+ RUN apt-get install -yq --no-install-recommends r-cran-mass=7.3-51.5-2bionic0 r-cran-class=7.3-16-1bionic0 r-cran-nnet=7.3-13-1bionic0
119+ RUN apt-get install -yq --no-install-recommends r-recommended=4.1.3-1.1804.0
120+ RUN apt-get install -yq --no-install-recommends r-base=4.1.3-1.1804.0
121+ RUN apt-mark hold r-base r-recommended
122+ ADD build/libInstall2.R build/
123+ RUN Rscript build/libInstall2.R
124+
95125RUN locale-gen en_US.UTF-8
96126RUN update-locale LANG=en_US.UTF-8
97127
0 commit comments