OW / Dockerfile
lx0xl's picture
Update Dockerfile
5d5a6f1 verified
raw
history blame contribute delete
566 Bytes
# 使用官方推荐的 Python 3.11 镜像
FROM python:3.11-slim
# 设置工作目录
WORKDIR /app
# 安装 open-webui
RUN pip install --no-cache-dir open-webui
# 设置环境变量 (根据需要修改)
ENV OLLAMA_BASE_URL="http://localhost:11434" \
DATA_DIR="/app/data" \
ENABLE_CHAT_RESPONSE_BASE64_IMAGE_URL_CONVERSION="true" \
CHAT_STREAM_RESPONSE_CHUNK_MAX_BUFFER_SIZE="16777216" \
OPENAI_API_BASE_URLS="http://host55-one:11434;http://host55-two:11434"
# 暴露 Open WebUI 默认端口
EXPOSE 8080
# 启动命令
CMD ["open-webui", "serve"]