Skip to content

Commit b82955a

Browse files
pftgclaude
andcommitted
fix: Docker build — fix /bundle permissions for bundle install
Replace cache mount (which doesn't fix ownership of existing subdirs) with explicit chown before bundle install. Fixes permission error when /bundle/ruby/4.0.0 was previously created by root. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent d71fede commit b82955a

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ WORKDIR /app
5151
# Copy entire project (needed for git dependencies in gems.rb)
5252
COPY --chown=circleci:circleci . .
5353

54-
# Install gems with cached bundle
55-
RUN --mount=type=cache,target=/bundle,uid=1000,gid=1000 \
54+
# Install gems
55+
RUN sudo chown -R circleci:circleci /bundle && \
5656
bundle config set without 'tools' && \
5757
bundle install

0 commit comments

Comments
 (0)