Skip to content

Codebase intelligence for AI and humans: code health scores, auto-generated docs, git analytics, dead code detection, and architectural decisions via MCP.

fix(docker): create /data directory before chown (Blocker 1) (#1266)

Akshat malikf58f4ef876d6
diff --git a/docker/Dockerfile b/docker/Dockerfile
index 2cb6037f0..f143e4aee 100644
--- a/docker/Dockerfile
+++ b/docker/Dockerfile
@@ -53,6 +53,11 @@ COPY --from=frontend-builder /app/.next/static /app/web/.next/static
COPY --from=frontend-builder /app/public /app/web/public
# Data volume for .repowise directory
+# mkdir is required: VOLUME only registers metadata and does not create the
+# directory on the image filesystem at build time. Without it, the subsequent
+# `chown -R repowise:repowise /data` (run at build time) fails with
+# "cannot access '/data': No such file or directory".
+RUN mkdir -p /data
VOLUME /data
# Environment defaults