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 编译可能会遗漏 .env.local 文件,需要手动进行补全。 #2071

Closed
1 of 2 tasks
jhfuture opened this issue Jul 17, 2024 · 1 comment
Closed
1 of 2 tasks
Labels
bug Something isn't working

Comments

@jhfuture
Copy link

例行检查

  • [ x] 我已确认目前没有类似 issue
  • [x ] 我已完整查看过项目 README,以及项目文档
  • [x ] 我使用了自己的 key,并确认我的 key 是可正常使用的
  • [x ] 我理解并愿意跟进此 issue,协助测试和提供反馈
  • 我理解并认可上述内容,并理解项目维护者精力有限,不遵循规则的 issue 可能会被无视或直接关闭

你的版本
4.8.1

  • 公有云版本
  • [* ] 私有部署版本, 具体版本号:

问题描述, 日志截图
启动容器后,截图如下:
mongodb无法正常连接
image

复现步骤
重新创建容器,并使用 -v 指定数据卷,查看容器的运行文件发现 projects/app 下缺少 .env.local 文件。补全后正常运行。
image
image

相关
Dockerfile编译文件

# copy packages and one project
COPY pnpm-lock.yaml pnpm-workspace.yaml .npmrc ./
COPY ./packages ./packages
COPY ./projects/app/package.json ./projects/app/package.json
@jhfuture jhfuture added the bug Something isn't working label Jul 17, 2024
@c121914yu
Copy link
Collaborator

c121914yu commented Jul 17, 2024

那是本地来发的文件~docker环境变量通过 enviroment 配置

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants