Skip to content

Commit

Permalink
优化Dockerfile环境变量配置
Browse files Browse the repository at this point in the history
  • Loading branch information
snailyp committed Dec 15, 2024
1 parent 560cc3f commit 626ccef
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 626ccef

Please sign in to comment.