Skip to content

[Bug] 我采用本地build 成镜像后,是否该镜像不会采用.env.local 的配置,我发布上去一直显示需要配置KEY #6341

Open
@Austin-Patrician

Description

@Austin-Patrician

📦 部署方式

Docker

📌 软件版本

💻 系统环境

Ubuntu

📌 系统版本

19.2

🌐 浏览器

Chrome

📌 浏览器版本

latest

🐛 问题描述

我需要将请求openai 的接口放到自己定义的后台项目,并且在.env.local配置了自己的jwt token,自己的baseurl, 在本地开发debug完全没问题,但是当我本地docker build 后(已经将.env.local 从docker ignore 移除)后,发布到外网,会显示未配置APIKEY的问题。请问我还需要在docker file 直接配置key 么?但是我没看到baseurl 选择,该如何配置?(我的后台接口可以Postman 调通)

📷 复现步骤

No response

🚦 期望结果

docker 本地部署后应该启动正常,可以调通接口。

📝 补充信息

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions