run prisma generate as nobody

This commit is contained in:
Ishaan Jaff 2024-11-12 11:10:54 -08:00
parent 1c0ea3802f
commit 0892975434

View file

@ -77,12 +77,12 @@ RUN pip install prisma
# Make a /non-existent folder and assign chown to nobody
RUN mkdir -p /nonexistent && chown -R nobody:nogroup /nonexistent
# Run Prisma generate
RUN prisma generate
RUN chmod +x docker/entrypoint.sh
# Run Prisma generate as user = nobody
USER nobody
RUN prisma generate
### End of Prisma Handling for Non-Root #########################################
USER root
EXPOSE 4000/tcp
# # Set your entrypoint and command