We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 157306d commit ffb9dc1Copy full SHA for ffb9dc1
Dockerfile.production
@@ -42,8 +42,8 @@ COPY Gemfile Gemfile.lock ./
42
# Pin bundler to lockfile version to avoid reinstall on each build
43
RUN gem install bundler -v "$(grep -A1 'BUNDLED WITH' Gemfile.lock | tail -1 | tr -d ' ')" --no-document
44
45
-RUN bundle install --jobs 2 --retry 3 && \
46
- rm -rf /usr/local/bundle/ruby/*/cache && \
+RUN --mount=type=cache,id=prostaff-bundle,target=/usr/local/bundle/cache \
+ bundle install --jobs 4 --retry 3 && \
47
rm -rf /usr/local/bundle/ruby/*/bundler/gems/*/.git
48
49
COPY . .
0 commit comments