Skip to content

Commit 785ff82

Browse files
pftgclaude
andcommitted
fix: Docker build — restore .git and fix bundle permissions
- Remove .git/ from .dockerignore (needed for gemspec git ls-files) - Fix /bundle permissions with chown for circleci user Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent e3b1a2e commit 785ff82

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

.dockerignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
.ruby-lsp/
33
coverage/
44
tmp/
5-
.git/
5+
# Keep .git/ — needed for gemspec git ls-files and VCS checkout in tests
66
.idea/
77
.claude/
88
.bundle/

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 \
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)