Fix bug prisma build on server

This commit is contained in:
Charles Bochet 2023-04-24 17:19:09 +02:00
parent f1058ffcf5
commit 7b2033e5a4

View File

@ -3,13 +3,11 @@ FROM node:18.16.0-alpine as server
COPY ./server/package.json ./
COPY ./server/package-lock.json ./
RUN npm install
RUN npx prisma generate
WORKDIR /app/server
COPY ./server .
RUN npm run build
RUN npx prisma generate
CMD ["node", "dist/main"]