From b2ac6cc218c7c8c801f07abf93413ec45fa69d56 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?V=C3=A1clav=20Van=C4=8Dura?= Date: Wed, 22 Jan 2025 12:59:39 +0100 Subject: [PATCH] Actor: Create Apify user home directory in Docker setup MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Add and configure `/home/appuser/.apify` directory with proper permissions for the appuser in the Docker container. This ensures the Apify SDK has a writable home directory for storing its configuration and temporary files. Signed-off-by: Václav Vančura --- .actor/Dockerfile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.actor/Dockerfile b/.actor/Dockerfile index 38c576d6..ae520b39 100644 --- a/.actor/Dockerfile +++ b/.actor/Dockerfile @@ -21,9 +21,9 @@ RUN groupadd -r appuser && useradd -r -g appuser -s /sbin/nologin appuser && \ WORKDIR /app -RUN mkdir -p /tmp/runtime-root && \ +RUN mkdir -p /tmp/runtime-root /home/appuser/.apify && \ chmod 0700 /tmp/runtime-root && \ - chown appuser:appuser /tmp/runtime-root + chown -R appuser:appuser /tmp/runtime-root /home/appuser/.apify COPY --chown=appuser:appuser .actor/ .actor/ COPY --chown=appuser:appuser . .