From 5537365e36eed3546fb9ffb414f06d5a08f56bf6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sara=20Aim=C3=A9e=20Smiseth?= <51710585+SaraSmiseth@users.noreply.github.com> Date: Sat, 27 Jun 2020 19:53:23 +0200 Subject: [PATCH] Download modules, install modules and delete modules in one Docker RUN. --- Dockerfile | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/Dockerfile b/Dockerfile index 0218fde..fcedc52 100644 --- a/Dockerfile +++ b/Dockerfile @@ -67,9 +67,8 @@ COPY conf.d/*.cfg.lua /usr/local/etc/prosody/conf.d/ COPY *.bash /usr/local/bin/ -RUN download-prosody-modules.bash - -RUN docker-prosody-module-install.bash \ +RUN download-prosody-modules.bash \ + && docker-prosody-module-install.bash \ bookmarks `# XEP-0411: Bookmarks Conversion` \ carbons `# message carbons (XEP-0280)` \ cloud_notify `# XEP-0357: Push Notifications` \ @@ -79,9 +78,8 @@ RUN docker-prosody-module-install.bash \ smacks `# stream management (XEP-0198)` \ throttle_presence `# presence throttling in CSI` \ http_upload `# file sharing (XEP-0363)` \ - vcard_muc `# XEP-0153: vCard-Based Avatar (MUC)` - -RUN rm -rf "/usr/src/prosody-modules" + vcard_muc `# XEP-0153: vCard-Based Avatar (MUC)` \ + && rm -rf "/usr/src/prosody-modules" USER prosody