gpt-analysisi-code / Dockerfile
gordonchan's picture
Update Dockerfile
e405900 verified
raw
history blame contribute delete
656 Bytes
from ghcr.io/binary-husky/gpt_academic_nolocal:master
WORKDIR /gpt
# 创建 gpt_log 目录并设置权限
RUN mkdir gpt_log && chown -R 1000:1000 gpt_log
# 创建 private_upload 目录并设置权限
RUN mkdir private_upload && chown -R 1000:1000 private_upload
RUN pip install --upgrade dashscope
# 设置环境变量
ENV WEB_PORT=7860
ENV AUTO_CLEAR_TXT=True
ENV DARK_MODE=False
ENV AUTO_CLEAR_TXT=True
ENV TIMEOUT_SECONDS=60
ENV MAX_RETRY=3
ENV ALLOW_RESET_CONFIG=False
ENV AVAIL_LLM_MODELS="['gpt-3.5-turbo-1106','gpt-3.5-turbo-16k', 'gpt-3.5-turbo','qwen-max','gemini-pro']"
# 开放 端口
EXPOSE 7860
# 启动
CMD ["python3", "-u", "main.py"]