From 1c0ea3802fcf1d53d7b5719e709f4da15030551f Mon Sep 17 00:00:00 2001 From: Ishaan Jaff Date: Thu, 7 Nov 2024 20:08:26 -0800 Subject: [PATCH] fix tmp dir non root --- docker/Dockerfile.non_root | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/docker/Dockerfile.non_root b/docker/Dockerfile.non_root index 73ad17464bd..c857839a268 100644 --- a/docker/Dockerfile.non_root +++ b/docker/Dockerfile.non_root @@ -67,6 +67,11 @@ RUN chmod +x docker/build_admin_ui.sh && ./docker/build_admin_ui.sh ### Prisma Handling for Non-Root ################################################# # Prisma allows you to specify the binary cache directory to use ENV PRISMA_BINARY_CACHE_DIR=/app/prisma + +# Set the TMPDIR environment variable, when this does not exist prisma raises "Error: ENOENT: no such file or directory, lstat '/var/folders'"" +ENV TMPDIR=/tmp +RUN mkdir -p /tmp && chmod 1777 /tmp + RUN pip install nodejs-bin RUN pip install prisma