noteshare.space
                                
                                 noteshare.space copied to clipboard
                                
                                    noteshare.space copied to clipboard
                            
                            
                            
                        fix npx prisma generate error
When we want to do a docker-compose build we get an error when building the server image.
------
 > [dev_backend build_image 6/8] RUN npx prisma generate:
#0 4.156 Prisma schema loaded from prisma/schema.prisma
#0 5.001 Error: Get Config: Unable to establish a connection to query-engine-node-api library.
#0 5.001 Details: Unable to require(`/app/node_modules/prisma/libquery_engine-linux-musl.so.node`)
#0 5.001  Error loading shared library libssl.so.1.1: No such file or directory (needed by /app/node_modules/prisma/libquery_engine-linux-musl.so.node)
#0 5.001
#0 5.001 Prisma CLI Version : 4.2.0
------
The only thing missing is the openssl dependency in the server Dockerfile.
Hi! Thanks for your pull request.
Can you explain why this added dependency is necessary? I have not run into trouble with this before, and I'm puzzled why Prisma required SSL at all since SQLite is used for the storage layer.
I couldn't build without this addition. If you do a docker-compose up -d --build it doesn't give you this error?
I had the same problem, but I added libssl1.1
@apeyroux Didn't face this problem https://github.com/mcndt/noteshare.space/issues/48