Open kasir-barati opened 2 years ago
I get this error when I apply your management. How can I solve it? @kasir-barati
@Furkan-Gulsen It is elementary, Did you have the prisma installed as a dev Dependency? if not do this npm i -D prisma
.
Then it should work.
The other options is to install prisma globally before the RUN npx prisma generate
. But please note that I used to use a custom images. My base.Dockerfile
for the take-report:dep
is this:
# Just because of too many socket timeout and bottleneck while installing 3rd party packages I did this.
FROM node:16.14.0-alpine3.15
WORKDIR /app
# When using COPY with more than one source file, the destination must be a directory and end with a /
COPY package*.json ./
RUN NODE_ENV=development npm ci
And eventually I docker build . -f base.Dockerfile -t take-report:dep
. I hope this helps you
Please add more details about when we have seeds. Personally I did this:
Dockerfile
And this is my
docker-compose.yml
file:And in my
package.json
I have these scripts:But my problem with this solution is that I have to run
npm prune --production
after my seed completed. Do you have any idea to improve this?