From 8f64a1fc78f6f72e0a9e0f1976b7633122c8c2c1 Mon Sep 17 00:00:00 2001 From: Abderrahmane Smimite Date: Mon, 30 Dec 2024 01:04:04 +0100 Subject: [PATCH] Revert non-root docker user until further rework multiple collisions to fix first --- backend/Dockerfile | 2 -- backend/startup.sh | 2 +- frontend/Dockerfile | 2 -- 3 files changed, 1 insertion(+), 5 deletions(-) diff --git a/backend/Dockerfile b/backend/Dockerfile index 52dde60f3..f5dd68f92 100644 --- a/backend/Dockerfile +++ b/backend/Dockerfile @@ -30,8 +30,6 @@ RUN pip install --upgrade pip && \ RUN poetry install RUN rm -rf $POETRY_CACHE_DIR -RUN addgroup -g 1001 -S app && adduser -u 1001 -S -G app app -USER app ENTRYPOINT ["poetry", "run", "bash", "startup.sh"] EXPOSE 8000 diff --git a/backend/startup.sh b/backend/startup.sh index 415ad67d5..60394b277 100755 --- a/backend/startup.sh +++ b/backend/startup.sh @@ -7,7 +7,7 @@ fi if [ ! -n "$DJANGO_SECRET_KEY" ]; then if [ ! -f db/django_secret_key ]; then - install -m 600 <(cat /proc/sys/kernel/random/uuid) db/django_secret_key + cat /proc/sys/kernel/random/uuid >db/django_secret_key echo "generating initial Django secret key" fi export DJANGO_SECRET_KEY=$(