Update Docker image to bookworm

The `buster` image is quite old and creates some challenges on newer ARM
based Mac's, so we update to `bookworm`. To put this into context, this
takes us from a Debian release in Sept 2019 to June 2023.

Co-authored-by: An Stewart <andrew@super.gd>
Co-authored-by: Chris Todorov <chris@super.gd>
Co-authored-by: Alberto Vena <kennyadsl@gmail.com>
Co-authored-by: Thomas von Deyen <thomas@vondeyen.com>
This commit is contained in:
Nick Van Doorn 2024-04-30 13:22:32 -07:00
parent 5b65373270
commit 50af768213
No known key found for this signature in database
GPG Key ID: EA91B002A8F4238E

View File

@ -1,5 +1,5 @@
ARG RUBY_VERSION
FROM ruby:$RUBY_VERSION-slim-buster
FROM ruby:$RUBY_VERSION-slim-bookworm
ARG PG_VERSION
ARG MYSQL_VERSION
@ -14,6 +14,7 @@ RUN apt-get update -qq \
git \
imagemagick \
libvips \
libffi-dev \
libmariadb-dev \
sqlite3 \
libsqlite3-dev \
@ -22,10 +23,10 @@ RUN apt-get update -qq \
&& rm -rf /var/cache/apt/lists/*
RUN curl -sSL https://www.postgresql.org/media/keys/ACCC4CF8.asc | apt-key add - \
&& echo 'deb http://apt.postgresql.org/pub/repos/apt/ buster-pgdg main' $PG_VERSION > /etc/apt/sources.list.d/pgdg.list
&& echo 'deb http://apt.postgresql.org/pub/repos/apt/ bookworm-pgdg main' $PG_VERSION > /etc/apt/sources.list.d/pgdg.list
RUN apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 467b942d3a79bd29 \
&& echo "deb http://repo.mysql.com/apt/debian/ buster mysql-"$MYSQL_VERSION > /etc/apt/sources.list.d/mysql.list
RUN apt-key adv --keyserver keyserver.ubuntu.com --recv-keys B7B3B788A8D3785C \
&& echo "deb http://repo.mysql.com/apt/debian/ bookworm mysql-"$MYSQL_VERSION > /etc/apt/sources.list.d/mysql.list
RUN curl -sSL https://deb.nodesource.com/setup_$NODE_VERSION.x | bash -