From 8a648c77a889c14d56edf937d35d735852f22fa0 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Mon, 16 Feb 2026 18:47:09 +0000 Subject: [PATCH 1/2] Initial plan From f294d8eb8f69a884ffd628cd5dec7f71a127b8b3 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Mon, 16 Feb 2026 18:58:26 +0000 Subject: [PATCH 2/2] Fix Docker container startup failure: set writable home directory for app user The container was failing because `adduser --system` creates a user with home directory `/nonexistent` by default. HuggingFace Hub tries to cache model files at `$HOME/.cache/huggingface/`, which fails with PermissionError. Adding `--home /home/app` creates a proper writable home directory for the user. Co-authored-by: Eoic <18404082+Eoic@users.noreply.github.com> --- Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 8c0b06f..f263b5a 100644 --- a/Dockerfile +++ b/Dockerfile @@ -12,7 +12,7 @@ RUN mkdir -p app && touch app/__init__.py && \ COPY app/ app/ COPY scripts/ scripts/ -RUN addgroup --system app && adduser --system --ingroup app app +RUN addgroup --system app && adduser --system --home /home/app --ingroup app app USER app CMD ["uvicorn", "app.main:app", "--host", "0.0.0.0", "--port", "8000"]