79255450

Date: 2024-12-05 16:17:43
Score: 0.5
Natty:
Report link

When you run bun --bun run vite build, it outputs the files to the dist directory, which is the default directory for vite.

build.outDir

  • Type: string
  • Default: dist

But in your Dockerfile you try to copy the files from the /usr/src/app/build directory instead. The error message is self-explanatory:

  40 | >>> COPY --from=prerelease /usr/src/app/build .
--------------------
ERROR: failed to solve: ...: "/usr/src/app/build": not found

To resolve this, you can either:

Reasons:
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Starts with a question (0.5): When you
  • Low reputation (1):
Posted by: jarp0l