From 28125b434e664da3d877110e298f1cc3bc901fc1 Mon Sep 17 00:00:00 2001 From: Sajeyks Date: Tue, 3 Nov 2026 13:30:25 +0300 Subject: [PATCH] Make the app files readable for any user whatever umask the image is built with --- Dockerfile | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Dockerfile b/Dockerfile index 14e2335b..65fca9db 100644 --- a/Dockerfile +++ b/Dockerfile @@ -21,6 +21,8 @@ RUN LIBRARY_PATH=/lib:/usr/lib /bin/sh -c "pip install --no-cache-dir -r require COPY ./ . COPY entrypoint.sh / +# readable for any user, whatever the file modes (umask) were where the image is built +RUN chmod -R a+rX /usr/src/app && chmod a+rx /entrypoint.sh # Static files are collected at build time into /app/static (served by the hosting). # The settings need these values to load; the real ones come at run time.