diff --git a/Dockerfile b/Dockerfile index f1a7433..ad1aba5 100644 --- a/Dockerfile +++ b/Dockerfile @@ -21,6 +21,8 @@ COPY services /etc/services.d # Application expose EXPOSE 80/tcp +VOLUME ["/ui"] + # Hopefully has some sense? EXPOSE 10000/udp 10001/udp 10002/udp 10003/udp 10004/udp 10005/udp 10006/udp 10007/udp 10008/udp 10009/udp 10010/udp diff --git a/build.sh b/build.sh index 7759459..4bd06f9 100755 --- a/build.sh +++ b/build.sh @@ -8,6 +8,8 @@ packages_build=( packages_install=( jitsi-meet + patch + rsync ) no_postinst_pkgs=( diff --git a/setup.sh b/setup.sh index 769ee7b..ac8e852 100644 --- a/setup.sh +++ b/setup.sh @@ -40,3 +40,15 @@ update-ca-certificates -f # Generate user for admin prosodyctl register focus "auth.${JITSI_DOMAIN}" "${JITSI_ADMIN_SECRET}" + +# Overwrite UI files from mount +[ -d /ui/files ] && rsync -rv /ui/files/ /usr/share/jitsi-meet/ +[ -d /ui/patches ] && { + pushd /usr/share/jitsi-meet + + for patch_file in /ui/patches/*.patch; do + patch -b -i "${patch_file}" -p0 + done + + popd +}