FROM python:3.9-slim WORKDIR /app COPY . /app # 安装依赖 RUN pip install --no-cache-dir -r requirements.txt # 设置环境变量(如有需要) ENV OPENAI_API_BASE_URLS="http://example.com/v1" ENV OPENAI_API_KEYS="Ga_test_key1" # 启动应用 (假设你的应用监听 0.0.0.0:7860) CMD ["python", "uvicorn_boot.py"]