In my Dockerfile i have a `RUN` command of `npx pr...
# orm-help
a
In my Dockerfile i have a
RUN
command of
npx prisma generate
when i build my image i am getting error
Error: Get config: Unable to establish a connection to query-engine-node-api library
The base image of my dockerfile is
node:16-slim
my prisma schema ha
Copy code
generator client {
  provider      = "prisma-client-js"
  binaryTargets = ["native"]
}

datasource db {
  provider = "postgresql"
  url      = env("DATABASE_URL")
}
Any Ideas why this is happening ?
👀 1
a
Hey Atharva! Could you share your full
Dockerfile
and Prisma Client versions so I can attempt to recreate this?
a
Copy code
FROM node:16-slim

WORKDIR /app
COPY package.json yarn.lock ./
RUN yarn
COPY . ./

ARG CURR_ENV

RUN echo "CURRENT ENV : ${CURR_ENV}" 

RUN npx prisma generate

RUN if [ "$CURR_ENV" != "dev" ]; then yarn build; fi

# RUN
CMD ["yarn","dev"]
Docker file
Copy code
version: '3.7'
services:
  some-name:
    container_name: some name
    env_file:
      - ./.env
    build : 
      context: .
      args:
        CURR_ENV : dev
    image: some-name
    volumes:
      - ./:/app
      - /app/node_modules
    command: yarn run dev
Docker Compose
Prisma Client Version
Copy code
"@prisma/client": "^3.15.1",
"prisma": "^3.15.1"
@Austin thanks for reply please let me know if anything else is required
@Austin did you find something out