Skip to content

OpenProject is the leading open source project management software for product, project and portfolio management. A powerful Jira alternative with agile planning, issue tracking, roadmaps, Gantt charts, time tracking, collaboration features, and more. Available on premises or in the cloud. ⭐ Star us on GitHub

allow adding plugins via Gemfile.{modules,plugins}

Markus Kahlfeffcb29d606
diff --git a/docker/prod/Dockerfile b/docker/prod/Dockerfile
index c73cc95c0aa..e48aa8b80b7 100644
--- a/docker/prod/Dockerfile
+++ b/docker/prod/Dockerfile
@@ -169,9 +169,14 @@ COPY vendor ./vendor
# some gemspec files of plugins require files in there, notably OpenProject::Version
COPY lib ./lib
-RUN bundle install --quiet --deployment --path vendor/bundle --no-cache \
- --with="$RAILS_GROUPS" --without="test development" --jobs=8 --retry=3 && \
- rm -rf vendor/bundle/ruby/*/cache && rm -rf vendor/bundle/ruby/*/gems/*/spec && rm -rf vendor/bundle/ruby/*/gems/*/test
+RUN \
+ bundle config set --local path 'vendor/bundle' && \
+ bundle config set --local without 'test development' && \
+ bundle install --quiet --no-cache --jobs=8 --retry=3 && \
+ bundle config set deployment 'true' && \
+ rm -rf vendor/bundle/ruby/*/cache && \
+ rm -rf vendor/bundle/ruby/*/gems/*/spec && \
+ rm -rf vendor/bundle/ruby/*/gems/*/test
# Finally, copy over the whole thing
COPY . .