generate prisma client in docker container
This commit is contained in:
parent
dc311073a3
commit
9e4575c343
@ -20,6 +20,10 @@ RUN apt-get update -y && \
|
|||||||
COPY package.json package-lock.json ./
|
COPY package.json package-lock.json ./
|
||||||
RUN npm install --ignore-scripts=false --foreground-scripts --verbose
|
RUN npm install --ignore-scripts=false --foreground-scripts --verbose
|
||||||
|
|
||||||
|
# Copy Prisma schema and generate client
|
||||||
|
COPY prisma ./prisma
|
||||||
|
RUN npx prisma generate
|
||||||
|
|
||||||
# Copy the rest of the code
|
# Copy the rest of the code
|
||||||
COPY . .
|
COPY . .
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user