From a7337d6977a3462b4e67d04940108ca4a5a51367 Mon Sep 17 00:00:00 2001 From: Leex Date: Fri, 17 Apr 2026 12:40:13 +0200 Subject: [PATCH] fix(docker): create /.archon subdirs in entrypoint for bind mounts (#1260) Named volumes inherit /.archon/workspaces and /.archon/worktrees from the image layer on first run, but bind mounts do not. Without these directories, the Claude subprocess is spawned with a non-existent cwd and fails silently, causing the 60s first-event timeout. Adding mkdir -p in the entrypoint is idempotent for named volumes and fixes bind-mount setups (e.g. ARCHON_DATA pointing to a host path on macOS/Linux). --- docker-entrypoint.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/docker-entrypoint.sh b/docker-entrypoint.sh index 6f4d516a9f..26594e5c41 100644 --- a/docker-entrypoint.sh +++ b/docker-entrypoint.sh @@ -1,6 +1,11 @@ #!/bin/bash set -e +# Ensure required subdirectories exist. +# Named volumes inherit these from the image layer on first run; bind mounts do not, +# which causes the Claude subprocess to fail silently when spawned with a missing cwd. +mkdir -p /.archon/workspaces /.archon/worktrees + # Determine if we need to use gosu for privilege dropping if [ "$(id -u)" = "0" ]; then # Running as root: fix volume permissions, then drop to appuser