mirror of
https://github.com/processone/ejabberd.git
synced 2024-11-24 16:23:40 +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:
parent
2428f74fbd
commit
461c1ddf3d
4
.github/container/Dockerfile
vendored
4
.github/container/Dockerfile
vendored
@ -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
|
||||
|
||||
################################################################################
|
||||
|
Loading…
Reference in New Issue
Block a user