优化dockerfile,增加docker-compose,async openai

This commit is contained in:
Yuzhong Zhang
2025-03-03 13:55:09 +08:00
parent 48d58ef2e8
commit cdbca7ec62
3 changed files with 15 additions and 4 deletions

View File

@@ -3,16 +3,18 @@ FROM python:3.10-slim
WORKDIR /app
# 复制所需文件到容器中
COPY ./app /app/app
COPY ./requirements.txt /app
RUN pip install --no-cache-dir -r requirements.txt
COPY ./app /app/app
ENV API_KEYS='["your_api_key_1"]'
ENV ALLOWED_TOKENS='["your_token_1"]'
ENV BASE_URL=https://generativelanguage.googleapis.com/v1beta
ENV TOOLS_CODE_EXECUTION_ENABLED=true
ENV MODEL_SEARCH='["gemini-2.0-flash-exp"]'
COPY ./api_keys.txt /app
# Expose port
EXPOSE 8000