Actor: Create Apify user home directory in Docker setup

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 <commit@vancura.dev>
This commit is contained in:
Václav Vančura 2025-01-22 12:59:39 +01:00 committed by Adam Kliment
parent 784571f9ce
commit b2ac6cc218

View File

@ -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 . .