"/prisma": not found error received while building dockerfile

I am running this command: wasp deploy fly launch mycoolapp mad

When I ran this I got the initial problem as:

failed to parse stage name "node:-slim": invalid reference format

Thus I changed the dockerfiles. I swaped the lines FROM node:${NODE_VERSION}-slim as base with FROM node:18.20.3-slim as base

However when I run it like this I got below issue,

Please take note of your database credentials above, as they will not be available in plaintext again. Press any key to continue.
🚀  Don't forget to deploy your app by running "wasp deploy fly deploy".
🚀  Deploying your Wasp app to Fly.io!
🚀  Deploying your server now...
$ cd /home/meric/OpenSaaS/myApp/.wasp/build
$ flyctl secrets list -j
[
    {
        "Name": "DATABASE_URL",
        "Digest": "83f9ceb5e7b2b1e9",
        "CreatedAt": "2024-07-04T14:27:43Z"
    },
    {
        "Name": "JWT_SECRET",
        "Digest": "3bcccafec2094ac5",
        "CreatedAt": "2024-07-04T14:26:57Z"
    },
    {
        "Name": "PORT",
        "Digest": "331687776d319529",
        "CreatedAt": "2024-07-04T14:26:57Z"
    },
    {
        "Name": "WASP_SERVER_URL",
        "Digest": "f52e691f05606c0d",
        "CreatedAt": "2024-07-04T14:26:57Z"
    },
    {
        "Name": "WASP_WEB_CLIENT_URL",
        "Digest": "6ade92a0756211bf",
        "CreatedAt": "2024-07-04T14:26:57Z"
    }
]
$ flyctl deploy --remote-only
==> Verifying app config
--> Verified app config
Validating /home/meric/OpenSaaS/myApp/.wasp/build/fly.toml
✓ Configuration is valid
==> Building image
Waiting for remote builder fly-builder-broken-water-2615...

Remote builder fly-builder-broken-water-2615 ready
Waiting for remote builder fly-builder-broken-water-2615...

Remote builder fly-builder-broken-water-2615 ready
==> Building image with Docker
--> docker host: 24.0.7 linux x86_64
#1 [internal] load .dockerignore
#1 transferring context: 64B 0.2s done
#1 DONE 0.2s

#2 [internal] load build definition from Dockerfile
#2 transferring dockerfile: 4.18kB 0.2s done
#2 DONE 0.2s

#3 [internal] load metadata for docker.io/library/node:18.20.3-slim
#3 DONE 0.6s

#4 [base 1/2] FROM docker.io/library/node:18.20.3-slim@sha256:b5f822b742908992a92bc5f593a6fa17756c0b780ced621ee07d3ab7b9b83347
#4 DONE 0.0s

#5 [build 1/7] RUN apt-get update -qq &&     apt-get install -y python-is-python3 pkg-config build-essential openssl
#5 CACHED

#6 [base 2/2] WORKDIR /app
#6 CACHED

#7 [internal] load build context
#7 transferring context: 5.23MB 4.3s
#7 transferring context: 17.53MB 9.6s
#7 transferring context: 18.83MB 10.0s done
#7 DONE 10.1s

#8 [build 2/7] COPY --link package.json package-lock.json .
#8 CACHED

#9 [build 3/7] RUN npm install --production=false
#9 CACHED

#10 [build 4/7] COPY --link prisma .
#10 ERROR: failed to calculate checksum of ref f494167d-4131-4be9-96c1-424bdb826616::sbq9bpvm2ba5nlqv9a1igzj9b: "/prisma": not found
------
 > [build 4/7] COPY --link prisma .:
------
==> Building image
👀 checking remote builder compatibility with wireguardless deploys ...
✓ compatible remote builder found
INFO Override builder host with: https://fly-builder-broken-water-2615.fly.dev (was tcp://[fdaa:9:8286:a7b:3a:dfdb:bbe0:2]:2375)

Waiting for remote builder fly-builder-broken-water-2615...

Remote builder fly-builder-broken-water-2615 ready
Waiting for remote builder fly-builder-broken-water-2615...

INFO Override builder host with: https://fly-builder-broken-water-2615.fly.dev (was tcp://[fdaa:9:8286:a7b:3a:dfdb:bbe0:2]:2375)

Remote builder fly-builder-broken-water-2615 ready
==> Building image with Docker
--> docker host: 24.0.7 linux x86_64
#1 [internal] load .dockerignore
#1 transferring context: 64B 0.2s done
#1 DONE 0.2s

#2 [internal] load build definition from Dockerfile
#2 transferring dockerfile: 4.18kB 0.2s done
#2 DONE 0.2s

#3 [internal] load metadata for docker.io/library/node:18.20.3-slim
#3 DONE 0.6s

#4 [base 1/2] FROM docker.io/library/node:18.20.3-slim@sha256:b5f822b742908992a92bc5f593a6fa17756c0b780ced621ee07d3ab7b9b83347
#4 DONE 0.0s

#5 [build 1/7] RUN apt-get update -qq &&     apt-get install -y python-is-python3 pkg-config build-essential openssl
#5 CACHED

#6 [base 2/2] WORKDIR /app
#6 CACHED

#7 [internal] load build context
#7 transferring context: 32.78kB 0.2s done
#7 DONE 0.3s

#8 [build 2/7] COPY --link package.json package-lock.json .
#8 CACHED

#9 [build 3/7] RUN npm install --production=false
#9 CACHED

#10 [build 4/7] COPY --link prisma .
#10 ERROR: failed to calculate checksum of ref f494167d-4131-4be9-96c1-424bdb826616::x9ydn2bwhuggd4rpow8e9q283: "/prisma": not found
------
 > [build 4/7] COPY --link prisma .:
------
Error: failed to fetch an image or build from source: error building: failed to solve: failed to compute cache key: failed to calculate checksum of ref f494167d-4131-4be9-96c1-424bdb826616::x9ydn2bwhuggd4rpow8e9q283: "/prisma": not found
🚀  There was an error running "wasp deploy fly deploy". Please review the error and try again (if appropriate).


❌ --- [Error] Deploy command failed: ---------------------------------------------

Deploy command failed with exit code: 1

Could you please help? I dont have any prisma folder. Why prisma folder is not created automatically?

1 Like

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.