优化Dockerfile环境变量配置

This commit is contained in:
yinpeng
2024-12-15 14:06:16 +08:00
parent 560cc3f98b
commit 626ccef729

View File

@@ -7,11 +7,11 @@ COPY ./app /app/app
COPY ./requirements.txt /app
RUN pip install --no-cache-dir -r requirements.txt
ENV API_KEYS=["your_api_key_1"]
ENV ALLOWED_TOKENS=["your_token_1"]
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"]
ENV MODEL_SEARCH='["gemini-2.0-flash-exp"]'
# Expose port
EXPOSE 8000