Skip to content

Commit

Permalink
Use Ubuntu LTS to avoid issues with R
Browse files Browse the repository at this point in the history
R says it’s only supporting 22.04.
  • Loading branch information
smarr committed Jun 4, 2023
1 parent 0318489 commit 9acdaba
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM ubuntu:23.04
FROM ubuntu:22.04
# this allows the setup to ignore all of the ubuntu OS setup
# thats not needed for this docker image (Time Zone for example)
ARG DEBIAN_FRONTEND=noninteractive
Expand All @@ -10,11 +10,13 @@ ENV TZ=UTC
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone

# Add Node.js repo
RUN curl -sL https://deb.nodesource.com/setup_19.x | bash -
RUN curl -sL https://deb.nodesource.com/setup_20.x | bash -

RUN sh -c 'echo "deb http://cloud.r-project.org/bin/linux/debian bullseye-cran40/" > /etc/apt/sources.list.d/r-project.list' && \
apt-key adv --keyserver keyserver.ubuntu.com --recv-key '95C0FAF38DB3CCAD0C080A7BDC78B2DDEABC47B7'
RUN apt-get update && \
apt-get install -y --no-install-recommends software-properties-common dirmngr

RUN curl -sL https://cloud.r-project.org/bin/linux/ubuntu/marutter_pubkey.asc | tee -a /etc/apt/trusted.gpg.d/cran_ubuntu_key.asc
RUN add-apt-repository "deb https://cloud.r-project.org/bin/linux/ubuntu $(lsb_release -cs)-cran40/"

# R, Node.js, PostgreSQL, headers for R packages
RUN apt-get update && apt-get install -y \
Expand Down

0 comments on commit 9acdaba

Please sign in to comment.