Skip to content

Commit ffb9dc1

Browse files
committed
chore: improve build cache
1 parent 157306d commit ffb9dc1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Dockerfile.production

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,8 @@ COPY Gemfile Gemfile.lock ./
4242
# Pin bundler to lockfile version to avoid reinstall on each build
4343
RUN gem install bundler -v "$(grep -A1 'BUNDLED WITH' Gemfile.lock | tail -1 | tr -d ' ')" --no-document
4444

45-
RUN bundle install --jobs 2 --retry 3 && \
46-
rm -rf /usr/local/bundle/ruby/*/cache && \
45+
RUN --mount=type=cache,id=prostaff-bundle,target=/usr/local/bundle/cache \
46+
bundle install --jobs 4 --retry 3 && \
4747
rm -rf /usr/local/bundle/ruby/*/bundler/gems/*/.git
4848

4949
COPY . .

0 commit comments

Comments
 (0)