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

update Gemfile.lock with any added plugins, freeze bundle after

Markus Kahl13e95eeca90d
diff --git a/docker/prod/Dockerfile b/docker/prod/Dockerfile
index 5f9a16651ed..b4d4bd56a5d 100644
--- a/docker/prod/Dockerfile
+++ b/docker/prod/Dockerfile
@@ -124,6 +124,10 @@ COPY --chown=$APP_USER:$APP_USER --from=rubygems /usr/local/bundle /usr/local/bu
COPY --chown=$APP_USER:$APP_USER --from=assets /app/public/assets /app/public/assets
COPY --chown=$APP_USER:$APP_USER --from=assets /app/config/frontend_assets.manifest.json /app/config/frontend_assets.manifest.json
COPY --chown=$APP_USER:$APP_USER . .
+# Update Gemfile.lock in case a plugin has been added. It it hasn't, the file stays identical.
+COPY --chown=$APP_USER:$APP_USER --from=rubygems Gemfile.lock .
+
+ENV BUNDLE_FROZEN=true
# We need this so puma is allowed to create the tmp/pids folder and
# temporary upload files when running with a uid other than 1000 (app)