Skip to content

Commit 1549389

Browse files
committed
fix(skills/py): adapter-coze Docker example port consistency
Review by @chatgpt-codex-connector flagged: docker run -p 9000:9000 published host port 9000, but ENV PORT=8000 and os.getenv("PORT","8000") kept container listening on 8000. Host requests to 9000 would hit nothing. First-pass sed only caught `port=8000` literal; missed: - os.getenv("PORT", "8000") default value - ENV PORT=8000 Dockerfile directive - "port": 8000 config example All 8000 occurrences in the Python skill dir now unified to 9000.
1 parent bd2a617 commit 1549389

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

config/source/skills/cloudbase-agent/py/adapter-coze.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -278,7 +278,7 @@ app.use(auth_middleware)
278278
if __name__ == "__main__":
279279
app.run(
280280
create_agent,
281-
port=int(os.getenv("PORT", "8000")),
281+
port=int(os.getenv("PORT", "9000")),
282282
host="0.0.0.0"
283283
)
284284
```
@@ -307,7 +307,7 @@ RUN pip install -r requirements.txt
307307

308308
COPY . .
309309

310-
ENV PORT=8000
310+
ENV PORT=9000
311311

312312
CMD ["python", "app.py"]
313313
```
@@ -331,7 +331,7 @@ docker run -p 9000:9000 \
331331
"name": "coze-agent",
332332
"path": "./",
333333
"runtime": "Python3.9",
334-
"port": 8000,
334+
"port": 9000,
335335
"env": {
336336
"COZE_BOT_ID": "${COZE_BOT_ID}",
337337
"COZE_API_KEY": "${COZE_API_KEY}",

0 commit comments

Comments
 (0)