can't deploy remix and prisma app to fly.io

I am trying to deploy a remix app with vite to fly.io that is using prisma. The error I am getting is

=> ERROR [build 4/8] COPY --link prisma . 0.0s

[build 4/8] COPY --link prisma .:


Error: failed to fetch an image or build from source: error building: failed to solve: failed to compute cache key: “/prisma” not found: not found
not sure where to begin. All I did was create an app with flyctl launch and then run flyctl deploy. My fly.tarml file is

fly.toml app configuration file generated for rss-reader-v3 on 2024-03-19T09:30:19-04:00

See Fly Launch configuration (fly.toml) · Fly Docs for information about how to use this file.

app = ‘rss-reader-v3’
primary_region = ‘iad’

[build]

[http_service]
internal_port = 3000
force_https = true
auto_stop_machines = true
auto_start_machines = true
min_machines_running = 0
processes = [‘app’]

[[vm]]
memory = ‘1gb’
cpu_kind = ‘shared’
cpus = 1

Can I get some help, not sure where to begin.

That looks like an error with the Dockerfile, not with the fly.toml. Check the Dockerfile you’re using for a COPY instruction that needs some attention.

This is attempting to copy a directory named prisma from your application directory on your machine to the build machine. My experience is that Remix applications use prisma, so that directory should be there, but if not let me know. If the directory is there, check your .dockerignore.

Some of the Remix stacks will provide a Dockerfile for you, and if so, we won’t overwrite it. But since the --link parameter is present on the COPY statement, I suspect that the Dockerfile you are using was created by us.

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