From: Jérôme Benoit Date: Wed, 6 May 2026 18:47:38 +0000 (+0200) Subject: fix(sandcastle): pre-create .local/share dirs in Dockerfile X-Git-Tag: cli@v4.7.0~40 X-Git-Url: https://git.piment-noir.org/?a=commitdiff_plain;h=4d43636c784e6dbb90db78b7aee659f0363e8bc9;p=e-mobility-charging-stations-simulator.git 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. --- 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