From 461c1ddf3d69a8acdebd98e7694038491142b4c7 Mon Sep 17 00:00:00 2001 From: sando38 Date: Sun, 23 Apr 2023 10:57:06 +0200 Subject: [PATCH] Dockerfile: Rename packages to improve compatibility Rename libcap packages to improve compatibility between Alpine versions. This may be beneficial if one specifies an OTP_VSN which was built using an older Alpine base version. The alpine package libcap has been splitted into libcap2 and libcap-utils in Alpine 3.17. 'libcap' is now an alias for libcap2 and libcap-utils. We define 'so:libcap.so.2' for the runtime stage, as we only need the libraries, not the binaries. --- .github/container/Dockerfile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/container/Dockerfile b/.github/container/Dockerfile index f04a53800..3d0b861e7 100644 --- a/.github/container/Dockerfile +++ b/.github/container/Dockerfile @@ -85,7 +85,7 @@ RUN home_root_dir=$(echo $HOME | sed 's|\(.*\)/.*|\1 |') \ FROM ${METHOD} AS ejabberd RUN apk -U add --no-cache \ git \ - libcap-utils \ + libcap \ openssl WORKDIR /rootfs @@ -135,7 +135,7 @@ RUN chown -R $UID:$UID $HOME FROM docker.io/erlang:${OTP_VSN}-alpine AS runtime-package RUN apk -U upgrade --available --no-cache \ && apk add --no-cache \ - libcap2 \ + so:libcap.so.2 \ tini ################################################################################