mirror of
https://github.com/cnlimiter/codex-register.git
synced 2026-05-06 20:02:51 +08:00
refactor: centralize default webui port config
This commit is contained in:
@@ -4,12 +4,14 @@ FROM python:3.11-slim
|
||||
# 设置工作目录
|
||||
WORKDIR /app
|
||||
|
||||
ARG DEFAULT_WEBUI_PORT=15555
|
||||
|
||||
# 设置环境变量
|
||||
ENV PYTHONDONTWRITEBYTECODE=1 \
|
||||
PYTHONUNBUFFERED=1 \
|
||||
# WebUI 默认配置
|
||||
WEBUI_HOST=0.0.0.0 \
|
||||
WEBUI_PORT=15555 \
|
||||
WEBUI_PORT=${DEFAULT_WEBUI_PORT} \
|
||||
LOG_LEVEL=info \
|
||||
DEBUG=0
|
||||
|
||||
@@ -30,7 +32,7 @@ RUN pip install --no-cache-dir --upgrade pip \
|
||||
COPY . .
|
||||
|
||||
# 暴露端口
|
||||
EXPOSE 15555
|
||||
EXPOSE ${DEFAULT_WEBUI_PORT}
|
||||
|
||||
# 启动 WebUI
|
||||
CMD ["python", "webui.py"]
|
||||
|
||||
Reference in New Issue
Block a user