Next.js Discord

Discord Forum

Next.js Docker Standalone fails

Unanswered
Paper wasp posted this in #help-forum
Open in Discord
Paper waspOP
Using a multi env setup like https://github.com/vercel/next.js/tree/canary/examples/with-docker-multi-env. when trying to build I get

 
> [next-web runner 5/6] COPY --from=builder --chown=nextjs:nodejs /app/.next/standalone ./:
  ------
  ------
   > [next-web runner 6/6] COPY --from=builder --chown=nextjs:nodejs /app/.next/static ./.next/static:
  ------
  failed to solve: failed to compute cache key: failed to calculate checksum of ref 36b139ca-7f32-4b89-84e6-beae32b833e6::un6zlqbzklfp93s1zgvf2hd9u: "/app/.next/static": not found

0 Replies