forked from phoenix/litellm-mirror
run prisma generate as nobody
This commit is contained in:
parent
1c0ea3802f
commit
0892975434
1 changed files with 4 additions and 4 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue