Spaces:
Runtime error
Runtime error
Update Dockerfile
Browse files- 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 |
-
#
|
| 37 |
-
RUN echo -e "
|
| 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 && \
|