mirror of
https://github.com/AutoMaker-Org/automaker.git
synced 2026-01-30 06:12:03 +00:00
- Enhanced .dockerignore to exclude additional build outputs and dependencies. - Modified dev.mjs and start.mjs to change Docker container startup behavior, removing the --build flag to preserve volumes. - Updated docker-compose.yml to add a new volume for persisting Claude CLI OAuth session keys. - Introduced docker-entrypoint.sh to fix permissions on the Claude CLI config directory. - Adjusted Dockerfile to include the entrypoint script and ensure proper user permissions. These changes improve the Docker setup and streamline the development workflow.
20 lines
622 B
Bash
Executable File
20 lines
622 B
Bash
Executable File
#!/bin/sh
|
|
set -e
|
|
|
|
# Fix permissions on Claude CLI config directory if it exists
|
|
# This handles the case where a volume is mounted and owned by root
|
|
if [ -d "/home/automaker/.claude" ]; then
|
|
chown -R automaker:automaker /home/automaker/.claude
|
|
chmod -R 755 /home/automaker/.claude
|
|
fi
|
|
|
|
# Ensure the directory exists with correct permissions if volume is empty
|
|
if [ ! -d "/home/automaker/.claude" ]; then
|
|
mkdir -p /home/automaker/.claude
|
|
chown automaker:automaker /home/automaker/.claude
|
|
chmod 755 /home/automaker/.claude
|
|
fi
|
|
|
|
# Switch to automaker user and execute the command
|
|
exec su-exec automaker "$@"
|