Skip to content

Commit 50af768

Browse files
nvandoornstewartforkatakennyadsltvdeyen
committed
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 <[email protected]> Co-authored-by: Chris Todorov <[email protected]> Co-authored-by: Alberto Vena <[email protected]> Co-authored-by: Thomas von Deyen <[email protected]>
1 parent 5b65373 commit 50af768

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

.dockerdev/Dockerfile

+5-4
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
ARG RUBY_VERSION
2-
FROM ruby:$RUBY_VERSION-slim-buster
2+
FROM ruby:$RUBY_VERSION-slim-bookworm
33

44
ARG PG_VERSION
55
ARG MYSQL_VERSION
@@ -14,6 +14,7 @@ RUN apt-get update -qq \
1414
git \
1515
imagemagick \
1616
libvips \
17+
libffi-dev \
1718
libmariadb-dev \
1819
sqlite3 \
1920
libsqlite3-dev \
@@ -22,10 +23,10 @@ RUN apt-get update -qq \
2223
&& rm -rf /var/cache/apt/lists/*
2324

2425
RUN curl -sSL https://www.postgresql.org/media/keys/ACCC4CF8.asc | apt-key add - \
25-
&& echo 'deb http://apt.postgresql.org/pub/repos/apt/ buster-pgdg main' $PG_VERSION > /etc/apt/sources.list.d/pgdg.list
26+
&& echo 'deb http://apt.postgresql.org/pub/repos/apt/ bookworm-pgdg main' $PG_VERSION > /etc/apt/sources.list.d/pgdg.list
2627

27-
RUN apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 467b942d3a79bd29 \
28-
&& echo "deb http://repo.mysql.com/apt/debian/ buster mysql-"$MYSQL_VERSION > /etc/apt/sources.list.d/mysql.list
28+
RUN apt-key adv --keyserver keyserver.ubuntu.com --recv-keys B7B3B788A8D3785C \
29+
&& echo "deb http://repo.mysql.com/apt/debian/ bookworm mysql-"$MYSQL_VERSION > /etc/apt/sources.list.d/mysql.list
2930

3031
RUN curl -sSL https://deb.nodesource.com/setup_$NODE_VERSION.x | bash -
3132

0 commit comments

Comments
 (0)