修改bug

This commit is contained in:
zhinianboke 2025-08-04 19:46:05 +08:00
parent c8045da0b0
commit 7f6ca55ef9
3 changed files with 19 additions and 32 deletions

View File

@ -99,22 +99,8 @@ EXPOSE 8080
HEALTHCHECK --interval=30s --timeout=10s --start-period=5s --retries=3 \
CMD curl -f http://localhost:8080/health || exit 1
# 创建启动脚本
COPY <<EOF /app/entrypoint.sh
#!/bin/bash
set -e
echo "🚀 启动闲鱼自动回复系统..."
echo "📊 数据库将在应用启动时自动初始化..."
echo "🎯 启动主应用..."
# 确保数据目录存在
mkdir -p /app/data /app/logs /app/backups /app/static/uploads/images
# 启动主应用
exec python Start.py
EOF
# 复制启动脚本
COPY entrypoint.sh /app/entrypoint.sh
RUN chmod +x /app/entrypoint.sh
# 启动命令

View File

@ -102,22 +102,8 @@ EXPOSE 8080
HEALTHCHECK --interval=30s --timeout=10s --start-period=5s --retries=3 \
CMD curl -f http://localhost:8080/health || exit 1
# 创建启动脚本
COPY <<EOF /app/entrypoint.sh
#!/bin/bash
set -e
echo "🚀 启动闲鱼自动回复系统..."
echo "📊 数据库将在应用启动时自动初始化..."
echo "🎯 启动主应用..."
# 确保数据目录存在
mkdir -p /app/data /app/logs /app/backups /app/static/uploads/images
# 启动主应用
exec python Start.py
EOF
# 复制启动脚本
COPY entrypoint.sh /app/entrypoint.sh
RUN chmod +x /app/entrypoint.sh
# 启动命令

15
entrypoint.sh Normal file
View File

@ -0,0 +1,15 @@
#!/bin/bash
set -e
echo "🚀 启动闲鱼自动回复系统..."
echo "📊 数据库将在应用启动时自动初始化..."
echo "🎯 启动主应用..."
# 确保数据目录存在
mkdir -p /app/data /app/logs /app/backups /app/static/uploads/images
# 设置目录权限
chmod 777 /app/data /app/logs /app/backups /app/static/uploads /app/static/uploads/images
# 启动主应用
exec python Start.py