From 24d0d2368a0808dea529f5791ed85473514e11cd Mon Sep 17 00:00:00 2001 From: Alejandro Gonzalez Date: Fri, 13 Dec 2024 12:00:26 +0100 Subject: [PATCH] Ensure all folders are accessible by appuser in the Docker container --- Dockerfile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 3dd978c..35029c4 100644 --- a/Dockerfile +++ b/Dockerfile @@ -16,7 +16,9 @@ RUN pip3 install /home/appuser/document-to-podcast RUN python3 demo/download_models.py RUN groupadd --gid 1000 appuser \ - && useradd --uid 1000 --gid 1000 -ms /bin/bash appuser + && useradd --uid 1000 --gid 1000 --create-home appuser \ + && chown -R appuser:appuser /home/appuser \ + && chmod -R 777 /home/appuser/.cache USER appuser