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

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +2 -2
Dockerfile CHANGED
@@ -33,8 +33,8 @@ RUN mkdir -p /app/public && \
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 && \
 
33
  chmod -R 777 /app/.files && \
34
  chmod -R 777 /app/public
35
 
36
+ # 创建 Chainlit 配置文件,确保使用正确的 TOML 语法
37
+ RUN echo -e "[general]\nenable_telemetry = false\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 && \