didiraja
10/04/2024, 7:35 PMHall
10/04/2024, 7:35 PMdidiraja
10/13/2024, 6:12 PMojk_001
10/15/2024, 3:35 PMprisma generate do not end up in the final actor's image, that's being run.
Solution should be simple - you just need to copy the files generated by prisma generate to the final image. According to [prisma docs](https://www.prisma.io/docs/orm/reference/prisma-cli-reference#generated-assets-2), generated files are stored in node_modules/.prisma/client, so you should just copy them same way as dist folder:
docker
COPY --from=builder --chown=myuser /home/myuser/dist ./dist
# Copying files from `prisma generate` to the final image
COPY --from=builder --chown=myuser /home/myuser/node_modules/.prisma/client ./node_modules/.prisma/client # <<< add this line to your dockerfile
Let me know if this helpeddidiraja
11/27/2024, 6:48 PM