From dd11d72bfcbc466d3d1f07fd09e724176618edc5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20=27rysiek=27=20Wo=C5=BAniak?= <rysiek@hackerspace.pl> Date: Mon, 12 Dec 2016 01:27:16 +0100 Subject: [PATCH] support for DISCOURSE_ADDITIONAL_GEMS added --- Dockerfile | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/Dockerfile b/Dockerfile index d7a6648..9b3c6b0 100644 --- a/Dockerfile +++ b/Dockerfile @@ -47,6 +47,15 @@ RUN git clone --branch v${DISCOURSE_VERSION} https://github.com/discourse/discou && bundle config build.nokogiri --use-system-libraries \ && bundle install --deployment --without test --without development +# install additional gems +# +# this expects a space-separated list of gem names +ARG DISCOURSE_ADDITIONAL_GEMS= +RUN if [ "$DISCOURSE_ADDITIONAL_GEMS" != "" ]; then \ + for GEM_NAME in $DISCOURSE_ADDITIONAL_GEMS; do \ + bundle exec gem install "$GEM_NAME"; \ + done; \ + fi # install discourse plugins # assumptions: no spaces in URLs (urlencoding is a thing) -- GitLab