From 68113c32b6b338511feaf5148eb0d72cf0fb6a5a Mon Sep 17 00:00:00 2001
From: Tom Teichler <tom.teichler@teckids.org>
Date: Tue, 23 Mar 2021 21:23:20 +0100
Subject: [PATCH] Allow to install additional apps

---
 Dockerfile | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)

diff --git a/Dockerfile b/Dockerfile
index b4d6a8125..6ee241fa0 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -52,6 +52,12 @@ RUN set -e; \
              ${ALEKSIS_backup__location}; \
     eatmydata pip install AlekSIS-Core\[$EXTRAS\]$APP_VERSION
 
+# Installl additional apps
+ONBUILD RUN set -e; \
+            if [ ! -z "$APPS" ]; then \
+                eatmydata pip install $APPS; \
+            fi
+
 # Define entrypoint, volumes and uWSGI running on port 8000
 EXPOSE 8000
 VOLUME ${ALEKSIS_media__root} ${ALEKSIS_backup__location}
@@ -67,7 +73,7 @@ RUN eatmydata aleksis-admin yarn install; \
 
 # Clean up build dependencies
 FROM assets AS clean
-RUN set -e; \
+ONBUILD RUN set -e; \
     eatmydata apt-get remove --purge -y \
         build-essential \
         gettext \
-- 
GitLab