Copy CLAUDE.md template to container's ~/.claude directory
Ensures Claude Code sessions automatically read the project instructions including conda usage, SMS notifications, and context persistence guidelines.
This commit is contained in:
parent
066233b03c
commit
2fc876b0a1
@ -50,15 +50,19 @@ RUN chmod +x /app/startup.sh
|
||||
# This enables one-time setup - no need for .env in project directories
|
||||
COPY .env /app/.env
|
||||
|
||||
# Copy CLAUDE.md template to user's .claude directory
|
||||
COPY templates/.claude/CLAUDE.md /tmp/CLAUDE.md
|
||||
|
||||
# Copy Claude authentication files from host
|
||||
# Note: These must exist - host must have authenticated Claude Code first
|
||||
COPY .claude.json /tmp/.claude.json
|
||||
COPY .claude /tmp/.claude
|
||||
|
||||
# Move auth files to proper location before switching user
|
||||
# Move auth files and CLAUDE.md to proper location before switching user
|
||||
RUN cp /tmp/.claude.json /home/claude-user/.claude.json && \
|
||||
cp -r /tmp/.claude/* /home/claude-user/.claude/ && \
|
||||
rm -rf /tmp/.claude*
|
||||
cp /tmp/CLAUDE.md /home/claude-user/.claude/CLAUDE.md && \
|
||||
rm -rf /tmp/.claude* /tmp/CLAUDE.md
|
||||
|
||||
# Set proper ownership for everything
|
||||
RUN chown -R claude-user:claude-user /app /home/claude-user
|
||||
|
Loading…
Reference in New Issue
Block a user