Spaces:
Sleeping
Sleeping
Update Dockerfile
Browse files10 unmodified lines1112131415161714151697 unmodified lines11411511612112212312412512612712812913011711811912012112229 unmodified lines1521531541671681551561571581701591601611621631641659 unmodified lines17517617718617810 unmodified lines libfreetype6 \ fontconfig \ fonts-wqy-zenhei \ libreoffice \ libreoffice-writer \ libreoffice-calc \ libreoffice-impress \ && rm -rf /var/lib/apt/lists/* \ && fc-cache -fv
97 unmodified linessleep 2\n\echo "✓ Xvfb started on DISPLAY=:99"\n\\n\# 启动 LibreOffice 进程池\n\echo "Starting LibreOffice process pool..."\n\for port in 2001 2002 2003 2004 2005; do\n\ soffice --headless --accept="socket,host=127.0.0.1,port=$port;urp;" --nofirststartwizard >/dev/null 2>&1 &\n\ echo " - LibreOffice process started on port $port"\n\done\n\sleep 3\n\echo "✓ LibreOffice process pool ready"\n\\n\# 启动 KKFileView\n\# 启动 KKFileView)\n\echo "Starting KKFileView on port 8012..."\n\echo "LibreOffice will be managed by KKFileView automatically"\n\export JAVA_OPTS="$JAVA_OPTS"\n\\n\if [[ "$STARTUP_SCRIPT" == *".sh" ]]; then\n\29 unmodified lines sleep 2\n\done\n\\n\# 验证 LibreOffice 进程池\n\echo "Verifying LibreOffice process pool..."\n\# 验证 LibreOffice\n\echo "Checking LibreOffice status..."\n\LIBREOFFICE_COUNT=$(ps aux | grep soffice | grep -v grep | wc -l)\n\if [ $LIBREOFFICE_COUNT -gt 0 ]; then\n\echo " - LibreOffice processes running: $LIBREOFFICE_COUNT"\n\ echo "✓ LibreOffice processes running: $LIBREOFFICE_COUNT"\n\else\n\ echo "⚠ LibreOffice not detected (will be started on first use)"\n\fi\n\\n\# 启动 Nginx\n\echo "Starting Nginx on port 7860..."\n\9 unmodified lines
# 9. 启动命令ENTRYPOINT []CMD ["/start.sh"]CMD ["/start.sh"]Dockerfile+10-18