25
1
mirror of https://github.com/processone/ejabberd.git synced 2024-12-26 17:38:45 +01:00

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.
This commit is contained in:
sando38 2023-04-23 10:57:06 +02:00 committed by Badlop
parent 2428f74fbd
commit 461c1ddf3d

View File

@ -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
################################################################################