sagar lama
10/06/2021, 11:15 AMError: Unable to require(`/app/node_modules/@prisma/engines/libquery_engine-linux-musl.so.node`)
Error loading shared library libssl.so.3: No such file or directory (needed by /app/node_modules/@prisma/engines/libquery_engine-linux-musl.so.node)
ERROR: 1
I ran the command using docker-compose run api npx prisma migrate dev
My Dockerfile looks like this.
FROM node:14-alpine as development
RUN apk add --no-cache git gcc g++ python
WORKDIR /app
COPY ./ ./
RUN npm ci --ignore-scripts --prefer-offline --silent --no-progress --no-audit
What am I missing?Nathaniel Babalola
10/06/2021, 11:21 AMsagar lama
10/06/2021, 11:24 AMNathaniel Babalola
10/06/2021, 11:29 AMNathaniel Babalola
10/06/2021, 11:32 AMnpx prisma generate
in your Dockerfile after you've copied your app filesRyan
10/06/2021, 12:00 PMbinaryTarget
directly, just run npx prisma generate
in your Dockerfile
and it will work.Ryan
10/06/2021, 12:01 PMsagar lama
10/06/2021, 12:22 PMsagar lama
10/06/2021, 12:23 PMsagar lama
10/06/2021, 12:24 PMsagar lama
10/06/2021, 12:25 PMRyan
10/06/2021, 12:26 PMNathaniel Babalola
10/06/2021, 1:14 PMEndyKaufman
10/06/2021, 1:14 PMEndyKaufman
10/06/2021, 1:15 PMEndyKaufman
10/06/2021, 1:25 PMEndyKaufman
10/06/2021, 1:26 PMEndyKaufman
10/06/2021, 1:27 PMRyan
10/06/2021, 1:29 PMEndyKaufman
10/06/2021, 1:33 PMEndyKaufman
10/06/2021, 1:34 PMEndyKaufman
10/06/2021, 1:35 PMEndyKaufman
10/06/2021, 1:37 PMEndyKaufman
10/06/2021, 1:38 PMEndyKaufman
10/06/2021, 1:42 PMEndyKaufman
10/06/2021, 1:50 PMEndyKaufman
10/06/2021, 1:50 PMRyan
10/06/2021, 2:03 PM3.1.1
for the time being.EndyKaufman
10/06/2021, 6:09 PMEndyKaufman
10/06/2021, 6:09 PMsagar lama
10/06/2021, 6:37 PM