Spaces:
Runtime error
Runtime error
leonsimon23
commited on
Commit
•
11352ff
1
Parent(s):
994e972
Update Dockerfile
Browse files- Dockerfile +5 -1
Dockerfile
CHANGED
@@ -16,5 +16,9 @@ WORKDIR /ChatGPT-Next-Web/standalone
|
|
16 |
|
17 |
EXPOSE 3000
|
18 |
|
|
|
|
|
|
|
|
|
19 |
# 修改启动命令
|
20 |
-
CMD ["node", "server.js"]
|
|
|
16 |
|
17 |
EXPOSE 3000
|
18 |
|
19 |
+
# 设置环境变量,让 Next.js 监听所有网络接口
|
20 |
+
ENV HOSTNAME "0.0.0.0"
|
21 |
+
ENV PORT 3000
|
22 |
+
|
23 |
# 修改启动命令
|
24 |
+
CMD ["node", "server.js"]
|