Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -77,17 +77,17 @@ FROM base
COPY --from=build "${BUNDLE_PATH}" "${BUNDLE_PATH}"
COPY --from=build /rails /rails

# Install Claude Code (native binary)
RUN curl -fsSL https://claude.ai/install.sh | bash && \
mv /root/.local/bin/claude /usr/local/bin/claude && \
chmod 755 /usr/local/bin/claude

# Run and own only the runtime files as a non-root user for security
RUN groupadd --system --gid 1000 rails && \
useradd rails --uid 1000 --gid 1000 --create-home --shell /bin/bash && \
chown -R rails:rails db log storage tmp
USER 1000:1000

# Install Claude Code as the rails user
RUN curl -fsSL https://claude.ai/install.sh | bash

ENV PATH="/home/rails/.local/bin:$PATH"

# Entrypoint prepares the database.
ENTRYPOINT ["/rails/bin/docker-entrypoint"]

Expand Down
Loading