mirror of
https://github.com/BerriAI/litellm.git
synced 2026-10-10 03:28:53 +00:00
fix prisma sec issues
This commit is contained in:
parent
66c0d32b1d
commit
003e962288
1 changed files with 15 additions and 1 deletions
16
Dockerfile
16
Dockerfile
|
|
@ -11,12 +11,26 @@ WORKDIR /app
|
|||
|
||||
# Install build dependencies
|
||||
RUN apt-get clean && apt-get update && \
|
||||
apt-get install -y gcc python3-dev && \
|
||||
apt-get install -y gcc python3-dev curl && \
|
||||
rm -rf /var/lib/apt/lists/*
|
||||
|
||||
RUN pip install --upgrade pip && \
|
||||
pip install build
|
||||
|
||||
|
||||
# Install Node.js and npm using NodeSource repository
|
||||
RUN curl -fsSL https://deb.nodesource.com/setup_16.x | bash - && \
|
||||
|
||||
apt-get install -y nodejs
|
||||
|
||||
# Install Prisma CLI globally
|
||||
RUN npm install -g prisma
|
||||
|
||||
# Set environment variables for writable directories
|
||||
ENV PRISMA_HOME_DIR=/tmp
|
||||
ENV TMPDIR=/tmp
|
||||
|
||||
|
||||
# Copy the current directory contents into the container at /app
|
||||
COPY . .
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue