Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Docker build 报错:"/app/dist": not found #839

Closed
beingdo opened this issue Mar 24, 2023 · 2 comments
Closed

Docker build 报错:"/app/dist": not found #839

beingdo opened this issue Mar 24, 2023 · 2 comments

Comments

@beingdo
Copy link

beingdo commented Mar 24, 2023

在docker build 最后一步,报这个错误

=> CACHED [frontend 8/9] RUN pnpm run build                                                                                                                                                                                             0.0s
 => CACHED [frontend 9/9] RUN ls                                                                                                                                                                                                         0.0s
 => ERROR [stage-2 8/9] COPY --from=frontend /app/dist /app/public                                                                                                                                                                       0.0s
------
 > [stage-2 8/9] COPY --from=frontend /app/dist /app/public:
------
Dockerfile:52
--------------------
  50 |     COPY /service /app
  51 |
  52 | >>> COPY --from=frontend /app/dist /app/public
  53 |
  54 |     COPY --from=backend /app/build /app/build
--------------------
ERROR: failed to solve: failed to compute cache key: failed to calculate checksum of ref moby::tl290jp6syylvn6j27cxv932l: "/app/dist": not found
@Chanzhaoyu
Copy link
Owner

本地测试没问题啊

@beingdo
Copy link
Author

beingdo commented Mar 24, 2023

嗯,大体上知道了,原因是我的 vps 1C1G内存不足,build frontend的时候失败了
我扩容到 1C2G,问题解决。
非常感谢

@beingdo beingdo closed this as completed Mar 24, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants