Allow to disable office installation in the ubuntu NM image
@@ -79,8 +79,11 @@ RUN sed -i 's@_XKB_PLUGIN_ID_@9@g' /etc/nomachine/xfce/.config/xfce4/xfconf/xfce
ADD nomachine_launcher.sh /etc/nomachine/nomachine_launcher.sh
+ARG WITH_OFFICE="yes"
ADD ubuntu/scripts/libreoffice.sh /opt/libreoffice.sh
-RUN chmod +x /opt/libreoffice.sh && /opt/libreoffice.sh && rm -f /opt/libreoffice.sh
+RUN if [ "$WITH_OFFICE" = "yes" ]; then \
+ chmod +x /opt/libreoffice.sh && /opt/libreoffice.sh && rm -f /opt/libreoffice.sh ; \
+ fi
# Install Chrome
RUN wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | apt-key add - && \
