fix prisma sec issues

This commit is contained in:
Ishaan Jaff 2024-08-12 18:29:52 -07:00
parent 66c0d32b1d
commit 003e962288

View file

@ -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 . .