From b189ca845c6fca3b77053a6bf3fe1247258a9047 Mon Sep 17 00:00:00 2001 From: Timmy Date: Sun, 22 Mar 2026 16:59:32 +0000 Subject: [PATCH] Pre-create target dirs with storkit ownership in Dockerfile Docker named volumes inherit directory ownership when first created. By creating /workspace/target and /app/target as storkit-owned before the USER directive, the volumes will be writable by the storkit user. Without this, cargo build/test/clippy all fail with Permission Denied. Co-Authored-By: Claude Opus 4.6 (1M context) --- docker/Dockerfile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/docker/Dockerfile b/docker/Dockerfile index ecc6793..daf5ed0 100644 --- a/docker/Dockerfile +++ b/docker/Dockerfile @@ -107,7 +107,9 @@ RUN groupadd -r storkit \ && mkdir -p /home/storkit/.claude \ && chown -R storkit:storkit /home/storkit \ && chown -R storkit:storkit /usr/local/cargo /usr/local/rustup \ - && chown -R storkit:storkit /app + && chown -R storkit:storkit /app \ + && mkdir -p /workspace/target /app/target \ + && chown storkit:storkit /workspace/target /app/target # ── Entrypoint ─────────────────────────────────────────────────────── # Validates required env vars (GIT_USER_NAME, GIT_USER_EMAIL) and