I am setting up docker to run my code, my Prisma w...
# orm-help
r
I am setting up docker to run my code, my Prisma works fine in my local machine, but when I tried to use docker I received the following error
Copy code
"message": "\nInvalid `prisma.user.findOne()` invocation in\n/app/dist/src/user/user.service.js:31:40\n\nspawn /app/node_modules/@prisma/client/runtime/query-engine-debian-openssl-1.1.x ENOENT"
I added
debian-openssl-1.1.x
to my
binaryTargets
and already ran
npx prisma generate
r
Hey @Rain which Docker image are you using?
r
@Ryan at first mhart/alpine but I changed to node:latest
r
Could you try using this image: node:`12.16.2-stretch` image and running
prisma generate
inside the Dockerfile itself You won't be requiring any
binaryTargets
option as it will automatically detect it.
r
FYI, I got an alpine image working with the help of this comment: https://github.com/prisma/prisma/issues/702#issuecomment-569778198
r
thanks all, will look into it
👍 1