Hey,
we use
multistage docker image builds to build our actors. TLDR: files generated by
prisma 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, generated files are stored in
node_modules/.prisma/client
, so you should just copy them same way as
dist
folder:
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 helped