Spaces:
Runtime error
Runtime error
Update Dockerfile
Browse files- 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
|
| 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 && \
|