Generate Prisma client during Docker build
This commit is contained in:
@@ -26,6 +26,9 @@ COPY --from=node_modules /app/node_modules ./node_modules
|
|||||||
# Expose the port
|
# Expose the port
|
||||||
EXPOSE 3000
|
EXPOSE 3000
|
||||||
|
|
||||||
|
# generate prisma client
|
||||||
|
RUN npm run prisma:generate
|
||||||
|
|
||||||
# Start the application
|
# Start the application
|
||||||
|
|
||||||
CMD ["npm", "run", "start:dev"]
|
CMD ["npm", "run", "start:dev"]
|
||||||
Reference in New Issue
Block a user