leonsimon23 commited on
Commit
3895a45
·
verified ·
1 Parent(s): 089255e

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +3 -6
Dockerfile CHANGED
@@ -33,12 +33,9 @@ RUN mkdir -p /app/public && \
33
  chmod -R 777 /app/.files && \
34
  chmod -R 777 /app/public
35
 
36
- # 创建默认的配置文件
37
- #RUN echo 'enable_telemetry: false\n\ndefault_expand_messages: true\npdf:\n max_size_mb: 25' > /app/.chainlit/config.toml
38
-
39
- # 修改创建默认的配置文件部分
40
- RUN mkdir -p /app/.chainlit && \
41
- echo 'enable_telemetry = false\n\ndefault_expand_messages = true\n[pdf]\n max_size_mb = 25' > /app/.chainlit/config.toml
42
 
43
  # 生成随机secret并创建环境变量文件
44
  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
+ # 删除可能存在的旧配置文件并创建新的配置文件
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 && \