From ac73948706e0baf49fe541e07dd54374c5f00e29 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nicol=C3=B2=20Boschi?= Date: Thu, 19 Feb 2026 16:42:27 +0100 Subject: [PATCH] fix: docker startup fails with named docker volumes (#405) --- docker/standalone/Dockerfile | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/docker/standalone/Dockerfile b/docker/standalone/Dockerfile index 7353b8ac..f0fb3888 100644 --- a/docker/standalone/Dockerfile +++ b/docker/standalone/Dockerfile @@ -170,6 +170,11 @@ RUN chown -R hindsight:hindsight /app USER hindsight +# Create pg0 data directory as hindsight user so that Docker seeds new named +# volumes with correct ownership (UID 1000) on first use, avoiding the +# "Permission denied" error when mounting a fresh root-owned volume. +RUN mkdir -p /home/hindsight/.pg0 + ENV PATH="/app/api/.venv/bin:${PATH}" # Pre-download tiktoken encoding (ALWAYS - required for token counting even in air-gapped envs) @@ -321,6 +326,11 @@ RUN chown -R hindsight:hindsight /app USER hindsight +# Create pg0 data directory as hindsight user so that Docker seeds new named +# volumes with correct ownership (UID 1000) on first use, avoiding the +# "Permission denied" error when mounting a fresh root-owned volume. +RUN mkdir -p /home/hindsight/.pg0 + ENV PATH="/app/api/.venv/bin:${PATH}" # Pre-download tiktoken encoding (ALWAYS - required for token counting even in air-gapped envs)