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

fix Gemfile.lock

Markus Kahlfc6e5797c1fa
diff --git a/docker/prod/Dockerfile b/docker/prod/Dockerfile
index e48aa8b80b7..a9355275590 100644
--- a/docker/prod/Dockerfile
+++ b/docker/prod/Dockerfile
@@ -174,6 +174,7 @@ RUN \
bundle config set --local without 'test development' && \
bundle install --quiet --no-cache --jobs=8 --retry=3 && \
bundle config set deployment 'true' && \
+ cp Gemfile.lock Gemfile.lock.bak && \
rm -rf vendor/bundle/ruby/*/cache && \
rm -rf vendor/bundle/ruby/*/gems/*/spec && \
rm -rf vendor/bundle/ruby/*/gems/*/test
@@ -181,6 +182,9 @@ RUN \
# Finally, copy over the whole thing
COPY . .
+# Copy lock file again as the updated version was overriden by COPY just now
+RUN cp Gemfile.lock.bak Gemfile.lock && rm Gemfile.lock.bak
+
RUN ./docker/prod/setup/postinstall.sh
# Expose ports for apache and postgres