more updates march
This commit is contained in:
78
jitsi/prosody/Dockerfile
Normal file
78
jitsi/prosody/Dockerfile
Normal file
@@ -0,0 +1,78 @@
|
||||
ARG JITSI_REPO=jitsi
|
||||
ARG BASE_TAG=latest
|
||||
|
||||
FROM ${JITSI_REPO}/base:${BASE_TAG} AS builder
|
||||
|
||||
RUN apt-dpkg-wrap apt-get update && \
|
||||
apt-dpkg-wrap apt-get install -y \
|
||||
build-essential \
|
||||
lua5.4 \
|
||||
liblua5.4-dev \
|
||||
libreadline-dev \
|
||||
git \
|
||||
unzip \
|
||||
wget && \
|
||||
mkdir /tmp/luarocks && \
|
||||
wget -qO - https://luarocks.github.io/luarocks/releases/luarocks-3.8.0.tar.gz | tar xfz - --strip-components 1 -C /tmp/luarocks && \
|
||||
cd /tmp/luarocks && ./configure && make && make install && cd - && \
|
||||
luarocks install basexx 0.4.1-1 && \
|
||||
luarocks install lua-cjson 2.1.0-1 && \
|
||||
luarocks install net-url 0.9-1
|
||||
|
||||
FROM ${JITSI_REPO}/base:${BASE_TAG}
|
||||
|
||||
LABEL org.opencontainers.image.title="Prosody IM"
|
||||
LABEL org.opencontainers.image.description="XMPP server used for signalling."
|
||||
LABEL org.opencontainers.image.url="https://prosody.im/"
|
||||
LABEL org.opencontainers.image.source="https://github.com/jitsi/docker-jitsi-meet"
|
||||
LABEL org.opencontainers.image.documentation="https://jitsi.github.io/handbook/"
|
||||
|
||||
ARG VERSION_JITSI_CONTRIB_PROSODY_PLUGINS="20250923"
|
||||
ARG VERSION_MATRIX_USER_VERIFICATION_SERVICE_PLUGIN="1.8.0"
|
||||
ARG PROSODY_PACKAGE="prosody"
|
||||
|
||||
RUN set -x && \
|
||||
wget -qO /etc/apt/trusted.gpg.d/prosody.gpg https://prosody.im/files/prosody-debian-packages.key && \
|
||||
echo "deb http://packages.prosody.im/debian bookworm main" > /etc/apt/sources.list.d/prosody.list && \
|
||||
apt-dpkg-wrap apt-get update && \
|
||||
apt-dpkg-wrap apt-get install -y \
|
||||
lua5.4 \
|
||||
$PROSODY_PACKAGE \
|
||||
libldap-common \
|
||||
sasl2-bin \
|
||||
libsasl2-modules-ldap \
|
||||
lua-cyrussasl \
|
||||
lua-inspect \
|
||||
lua-ldap \
|
||||
lua-luaossl \
|
||||
lua-sec \
|
||||
lua-unbound && \
|
||||
apt-dpkg-wrap apt-get -d install -y jitsi-meet-prosody && \
|
||||
dpkg -x /var/cache/apt/archives/jitsi-meet-prosody*.deb /tmp/pkg && \
|
||||
mv /tmp/pkg/usr/share/jitsi-meet/prosody-plugins /prosody-plugins && \
|
||||
rm -rf /tmp/pkg /var/cache/apt && \
|
||||
apt-cleanup && \
|
||||
rm -rf /etc/prosody && \
|
||||
mv /usr/share/lua/5.3/inspect.lua /usr/share/lua/5.4/ && \
|
||||
rm -rf /usr/lib/lua/{5.1,5.2,5.3} && \
|
||||
rm -rf /usr/share/lua/{5.1,5.2,5.3} && \
|
||||
wget https://github.com/matrix-org/prosody-mod-auth-matrix-user-verification/archive/refs/tags/v$VERSION_MATRIX_USER_VERIFICATION_SERVICE_PLUGIN.tar.gz && \
|
||||
tar -xf v$VERSION_MATRIX_USER_VERIFICATION_SERVICE_PLUGIN.tar.gz && \
|
||||
mv prosody-mod-auth-matrix-user-verification-$VERSION_MATRIX_USER_VERIFICATION_SERVICE_PLUGIN/mod_auth_matrix_user_verification.lua /prosody-plugins && \
|
||||
mv prosody-mod-auth-matrix-user-verification-$VERSION_MATRIX_USER_VERIFICATION_SERVICE_PLUGIN/mod_matrix_power_sync.lua /prosody-plugins && \
|
||||
rm -rf prosody-mod-auth-matrix-user-verification-$VERSION_MATRIX_USER_VERIFICATION_SERVICE_PLUGIN v$VERSION_MATRIX_USER_VERIFICATION_SERVICE_PLUGIN.tar.gz && \
|
||||
wget -q https://github.com/jitsi-contrib/prosody-plugins/archive/refs/tags/v$VERSION_JITSI_CONTRIB_PROSODY_PLUGINS.tar.gz && \
|
||||
tar -xf v$VERSION_JITSI_CONTRIB_PROSODY_PLUGINS.tar.gz && \
|
||||
mkdir /prosody-plugins-contrib && \
|
||||
cp -a prosody-plugins-$VERSION_JITSI_CONTRIB_PROSODY_PLUGINS/* /prosody-plugins-contrib && \
|
||||
rm -rf prosody-plugins-$VERSION_JITSI_CONTRIB_PROSODY_PLUGINS v$VERSION_JITSI_CONTRIB_PROSODY_PLUGINS.tar.gz && \
|
||||
(apt-cache policy prosody | grep -q "13\.0\.3" && sed -i '/idna_to_ascii/d' /usr/share/lua/5.4/prosody/util/jid.lua) || true
|
||||
|
||||
COPY rootfs/ /
|
||||
|
||||
COPY --from=builder /usr/local/lib/lua/5.4 /usr/local/lib/lua/5.4
|
||||
COPY --from=builder /usr/local/share/lua/5.4 /usr/local/share/lua/5.4
|
||||
|
||||
EXPOSE 5222 5280
|
||||
|
||||
VOLUME ["/config", "/prosody-plugins-custom"]
|
||||
Reference in New Issue
Block a user