Skip to content

Commit 2393a4d

Browse files
Fix GLIBC compatibility issue by upgrading to Ubuntu Noble
Updated Docker base image from Debian Bullseye (GLIBC 2.31) to Ubuntu Noble 24.04 (GLIBC 2.39) to resolve exqlite NIF library compatibility issue on Fly.io. Also updated libncurses5 to libncurses6 for Ubuntu Noble compatibility. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
1 parent 8e718e0 commit 2393a4d

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

Dockerfile

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,16 +7,16 @@
77
# This file is based on these images:
88
#
99
# - https://hub.docker.com/r/hexpm/elixir/tags - for the build image
10-
# - https://hub.docker.com/_/debian?tab=tags&page=1&name=bullseye-20240612-slim - for the release image
10+
# - https://hub.docker.com/_/ubuntu?tab=tags&page=1&name=noble - for the release image
1111
# - https://pkgs.org/ - resource for finding needed packages
12-
# - Ex: hexpm/elixir:1.17.1-erlang-26.2.5-debian-bullseye-20240612-slim
12+
# - Ex: hexpm/elixir:1.17.1-erlang-26.2.5-ubuntu-noble-20240605
1313
#
1414
ARG ELIXIR_VERSION=1.17.1
1515
ARG OTP_VERSION=26.2.5
16-
ARG DEBIAN_VERSION=bullseye-20240612-slim
16+
ARG UBUNTU_VERSION=noble-20240605
1717

18-
ARG BUILDER_IMAGE="hexpm/elixir:${ELIXIR_VERSION}-erlang-${OTP_VERSION}-debian-${DEBIAN_VERSION}"
19-
ARG RUNNER_IMAGE="debian:${DEBIAN_VERSION}"
18+
ARG BUILDER_IMAGE="hexpm/elixir:${ELIXIR_VERSION}-erlang-${OTP_VERSION}-ubuntu-${UBUNTU_VERSION}"
19+
ARG RUNNER_IMAGE="ubuntu:${UBUNTU_VERSION}"
2020

2121
FROM ${BUILDER_IMAGE} as builder
2222

@@ -68,7 +68,7 @@ RUN mix release
6868
FROM ${RUNNER_IMAGE}
6969

7070
RUN apt-get update -y && \
71-
apt-get install -y libstdc++6 openssl libncurses5 locales ca-certificates \
71+
apt-get install -y libstdc++6 openssl libncurses6 locales ca-certificates \
7272
&& apt-get clean && rm -f /var/lib/apt/lists/*_*
7373

7474
# Set the locale

0 commit comments

Comments
 (0)