Generate Prisma client during Docker build

This commit is contained in:
2024-09-24 17:01:17 +07:00
parent 5fd0faa5eb
commit b52b977c62

View File

@@ -26,6 +26,9 @@ COPY --from=node_modules /app/node_modules ./node_modules
# Expose the port
EXPOSE 3000
# generate prisma client
RUN npm run prisma:generate
# Start the application
CMD ["npm", "run", "start:dev"]