leonsimon23 commited on
Commit
18964b3
·
verified ·
1 Parent(s): 3895a45

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +2 -3
Dockerfile CHANGED
@@ -33,9 +33,8 @@ RUN mkdir -p /app/public && \
33
  chmod -R 777 /app/.files && \
34
  chmod -R 777 /app/public
35
 
36
- # 删除可能存在的旧配置文件并创建新的配置文件
37
- RUN rm -f /app/.chainlit/config.toml && \
38
- chainlit create-config
39
 
40
  # 生成随机secret并创建环境变量文件
41
  RUN python -c "import secrets; print('CHAINLIT_AUTH_SECRET=\"' + secrets.token_hex(32) + '\"')" > .env && \
 
33
  chmod -R 777 /app/.files && \
34
  chmod -R 777 /app/public
35
 
36
+ # 手动创建 Chainlit 配置文件
37
+ RUN echo -e "enable_telemetry = false\n\ndefault_expand_messages = true\n\n[pdf]\nmax_size_mb = 25" > /app/.chainlit/config.toml
 
38
 
39
  # 生成随机secret并创建环境变量文件
40
  RUN python -c "import secrets; print('CHAINLIT_AUTH_SECRET=\"' + secrets.token_hex(32) + '\"')" > .env && \