Build prisma client based on schema

This commit is contained in:
Charles Bochet 2023-04-24 17:10:50 +02:00
parent d4152fdcff
commit ec245f20c6
2 changed files with 4 additions and 0 deletions

View File

@ -9,6 +9,8 @@ WORKDIR /app/server
COPY ../../server/package.json . COPY ../../server/package.json .
COPY ../../server/package-lock.json . COPY ../../server/package-lock.json .
RUN npm install RUN npm install
RUN npx prisma generate
COPY ../../server . COPY ../../server .

View File

@ -9,5 +9,7 @@ WORKDIR /app/server
COPY ./server . COPY ./server .
RUN npm run build RUN npm run build
RUN npx prisma generate
CMD ["node", "dist/main"] CMD ["node", "dist/main"]