From 4d43636c784e6dbb90db78b7aee659f0363e8bc9 Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C3=A9r=C3=B4me=20Benoit?= Date: Wed, 6 May 2026 20:47:38 +0200 Subject: [PATCH] fix(sandcastle): pre-create .local/share dirs in Dockerfile Docker creates intermediate directories as root:root for bind mounts. Pre-creating /home/agent/.local/share/pnpm/store and opencode with correct ownership prevents EACCES when opencode writes to its data dir. --- .sandcastle/Dockerfile | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.sandcastle/Dockerfile b/.sandcastle/Dockerfile index e7c49128..dda73f84 100644 --- a/.sandcastle/Dockerfile +++ b/.sandcastle/Dockerfile @@ -27,6 +27,8 @@ RUN npm install -g \ ARG AGENT_UID=1001 RUN usermod -u ${AGENT_UID} -d /home/agent -m -l agent node \ && groupmod -g ${AGENT_UID} -n agent node \ + && mkdir -p /home/agent/.local/share/pnpm/store \ + /home/agent/.local/share/opencode \ && chown -R ${AGENT_UID}:${AGENT_UID} /home/agent USER agent -- 2.53.0