R
Railway13mo ago
Jack

documenso docker build failed

#12 1.868 npm WARN config production Use `--omit=dev` instead.



#12 3.225 Error: Could not find a schema.prisma file that is required for this command.

#12 3.225 You can either provide it with --schema, set it as `prisma.schema` in your package.json or put it into the default location ./prisma/schema.prisma https://pris.ly/d/prisma-schema-location



#12 ERROR: process "/bin/bash -ol pipefail -c npx prisma migrate dev && npx prisma db seed && npx prisma generate --schema=/packages/prisma/schema.prisma && npx turbo run build" did not complete successfully: exit code: 1

-----

> [stage-0 8/10] RUN --mount=type=cache,id=s/1ea2ce1e-a1e6-4445-a1b6-4e41ebfae926-apps/marketing/next/cache,target=/app/apps/marketing/.next/cache --mount=type=cache,id=s/1ea2ce1e-a1e6-4445-a1b6-4e41ebfae926-apps/web/next/cache,target=/app/apps/web/.next/cache --mount=type=cache,id=s/1ea2ce1e-a1e6-4445-a1b6-4e41ebfae926-node_modules/cache,target=/app/node_modules/.cache --mount=type=cache,id=s/1ea2ce1e-a1e6-4445-a1b6-4e41ebfae926-packages/ee/next/cache,target=/app/packages/ee/.next/cache --mount=type=cache,id=s/1ea2ce1e-a1e6-4445-a1b6-4e41ebfae926-packages/lib/next/cache,target=/app/packages/lib/.next/cache --mount=type=cache,id=s/1ea2ce1e-a1e6-4445-a1b6-4e41ebfae926-packages/ui/next/cache,target=/app/packages/ui/.next/cache npx prisma migrate dev && npx prisma db seed && npx prisma generate --schema=/packages/prisma/schema.prisma && npx turbo run build:

1.868 npm WARN config production Use `--omit=dev` instead.

3.225 Error: Could not find a schema.prisma file that is required for this command.

3.225 You can either provide it with --schema, set it as `prisma.schema` in your package.json or put it into the default location ./prisma/schema.prisma https://pris.ly/d/prisma-schema-location

-----



Dockerfile:24

-------------------

22 | # build phase

23 | COPY . /app/.

24 | >>> RUN --mount=type=cache,id=s/1ea2ce1e-a1e6-4445-a1b6-4e41ebfae926-apps/marketing/next/cache,target=/app/apps/marketing/.next/cache --mount=type=cache,id=s/1ea2ce1e-a1e6-4445-a1b6-4e41ebfae926-apps/web/next/cache,target=/app/apps/web/.next/cache --mount=type=cache,id=s/1ea2ce1e-a1e6-4445-a1b6-4e41ebfae926-node_modules/cache,target=/app/node_modules/.cache --mount=type=cache,id=s/1ea2ce1e-a1e6-4445-a1b6-4e41ebfae926-packages/ee/next/cache,target=/app/packages/ee/.next/cache --mount=type=cache,id=s/1ea2ce1e-a1e6-4445-a1b6-4e41ebfae926-packages/lib/next/cache,target=/app/packages/lib/.next/cache --mount=type=cache,id=s/1ea2ce1e-a1e6-4445-a1b6-4e41ebfae926-packages/ui/next/cache,target=/app/packages/ui/.next/cache npx prisma migrate dev && npx prisma db seed && npx prisma generate --schema=/packages/prisma/schema.prisma && npx turbo run build

25 |

26 |

-------------------

ERROR: failed to solve: process "/bin/bash -ol pipefail -c npx prisma migrate dev && npx prisma db seed && npx prisma generate --schema=/packages/prisma/schema.prisma && npx turbo run build" did not complete successfully: exit code: 1



Error: Docker build failed


#12 1.868 npm WARN config production Use `--omit=dev` instead.



#12 3.225 Error: Could not find a schema.prisma file that is required for this command.

#12 3.225 You can either provide it with --schema, set it as `prisma.schema` in your package.json or put it into the default location ./prisma/schema.prisma https://pris.ly/d/prisma-schema-location



#12 ERROR: process "/bin/bash -ol pipefail -c npx prisma migrate dev && npx prisma db seed && npx prisma generate --schema=/packages/prisma/schema.prisma && npx turbo run build" did not complete successfully: exit code: 1

-----

> [stage-0 8/10] RUN --mount=type=cache,id=s/1ea2ce1e-a1e6-4445-a1b6-4e41ebfae926-apps/marketing/next/cache,target=/app/apps/marketing/.next/cache --mount=type=cache,id=s/1ea2ce1e-a1e6-4445-a1b6-4e41ebfae926-apps/web/next/cache,target=/app/apps/web/.next/cache --mount=type=cache,id=s/1ea2ce1e-a1e6-4445-a1b6-4e41ebfae926-node_modules/cache,target=/app/node_modules/.cache --mount=type=cache,id=s/1ea2ce1e-a1e6-4445-a1b6-4e41ebfae926-packages/ee/next/cache,target=/app/packages/ee/.next/cache --mount=type=cache,id=s/1ea2ce1e-a1e6-4445-a1b6-4e41ebfae926-packages/lib/next/cache,target=/app/packages/lib/.next/cache --mount=type=cache,id=s/1ea2ce1e-a1e6-4445-a1b6-4e41ebfae926-packages/ui/next/cache,target=/app/packages/ui/.next/cache npx prisma migrate dev && npx prisma db seed && npx prisma generate --schema=/packages/prisma/schema.prisma && npx turbo run build:

1.868 npm WARN config production Use `--omit=dev` instead.

3.225 Error: Could not find a schema.prisma file that is required for this command.

3.225 You can either provide it with --schema, set it as `prisma.schema` in your package.json or put it into the default location ./prisma/schema.prisma https://pris.ly/d/prisma-schema-location

-----



Dockerfile:24

-------------------

22 | # build phase

23 | COPY . /app/.

24 | >>> RUN --mount=type=cache,id=s/1ea2ce1e-a1e6-4445-a1b6-4e41ebfae926-apps/marketing/next/cache,target=/app/apps/marketing/.next/cache --mount=type=cache,id=s/1ea2ce1e-a1e6-4445-a1b6-4e41ebfae926-apps/web/next/cache,target=/app/apps/web/.next/cache --mount=type=cache,id=s/1ea2ce1e-a1e6-4445-a1b6-4e41ebfae926-node_modules/cache,target=/app/node_modules/.cache --mount=type=cache,id=s/1ea2ce1e-a1e6-4445-a1b6-4e41ebfae926-packages/ee/next/cache,target=/app/packages/ee/.next/cache --mount=type=cache,id=s/1ea2ce1e-a1e6-4445-a1b6-4e41ebfae926-packages/lib/next/cache,target=/app/packages/lib/.next/cache --mount=type=cache,id=s/1ea2ce1e-a1e6-4445-a1b6-4e41ebfae926-packages/ui/next/cache,target=/app/packages/ui/.next/cache npx prisma migrate dev && npx prisma db seed && npx prisma generate --schema=/packages/prisma/schema.prisma && npx turbo run build

25 |

26 |

-------------------

ERROR: failed to solve: process "/bin/bash -ol pipefail -c npx prisma migrate dev && npx prisma db seed && npx prisma generate --schema=/packages/prisma/schema.prisma && npx turbo run build" did not complete successfully: exit code: 1



Error: Docker build failed


11 Replies
Percy
Percy13mo ago
Project ID: 1ea2ce1e-a1e6-4445-a1b6-4e41ebfae926,1ea2ce1e-a1e6-4445-a1b6-4e41ebfae926,1ea2ce1e-a1e6-4445-a1b6-4e41ebfae926,1ea2ce1e-a1e6-4445-a1b6-4e41ebfae926,1ea2ce1e-a1e6-4445-a1b6-4e41ebfae926,1ea2ce1e-a1e6-4445-a1b6-4e41ebfae926,1ea2ce1e-a1e6-4445-a1b6-4e41ebfae926,1ea2ce1e-a1e6-4445-a1b6-4e41ebfae926,1ea2ce1e-a1e6-4445-a1b6-4e41ebfae926,1ea2ce1e-a1e6-4445-a1b6-4e41ebfae926,1ea2ce1e-a1e6-4445-a1b6-4e41ebfae926,1ea2ce1e-a1e6-4445-a1b6-4e41ebfae926
Jack
JackOP13mo ago
tried multiple times with default var build command npx prisma migrate dev && npx prisma db seed && npx turbo run build
Brody
Brody13mo ago
Could not find a schema.prisma file that is required for this command.
Could not find a schema.prisma file that is required for this command.
Jack
JackOP13mo ago
changed build command and tried this in the last attempt npx prisma migrate dev && npx prisma db seed && npx prisma generate --schema=/packages/prisma/schema.prisma && npx turbo run build
Jack
JackOP13mo ago
No description
Brody
Brody13mo ago
likely your absolute path is wrong since the repo is placed into an /app folder at the root of the container try either prepending /app onto the path, or try ./packages/prisma/schema.prisma for a relative path
Jack
JackOP13mo ago
Just tried this now and same result, trying the first option. Any chance you could reproduce it?
Brody
Brody13mo ago
I don't even know what documenso is but this is just a case of an incorrect path
Medim
Medim13mo ago
(digital document signing, docusign alternative, is more secure)
Brody
Brody13mo ago
cool
Medim
Medim13mo ago
when i tried to use it i also had errors and gave up salute (skill issue)
Want results from more Discord servers?
Add your server