Spaces:
Sleeping
Sleeping
Update Dockerfile
Browse files10 unmodified lines1112131415161718192097 unmodified lines11811912012112212312412512612712812913013113213313429 unmodified lines1641651661671681691701711721739 unmodified lines18318418518610 unmodified lineslibfreetype6 \fontconfig \fonts-wqy-zenhei \libreoffice \libreoffice-writer \libreoffice-calc \libreoffice-impress \&& rm -rf /var/lib/apt/lists/* \&& fc-cache -fv97 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\echo "Starting KKFileView on port 8012..."\n\export JAVA_OPTS="$JAVA_OPTS"\n\\n\if [[ "$STARTUP_SCRIPT" == *".sh" ]]; then\n\29 unmodified linessleep 2\n\done\n\\n\# 验证 LibreOffice 进程池\n\echo "Verifying LibreOffice process pool..."\n\LIBREOFFICE_COUNT=$(ps aux | grep soffice | grep -v grep | wc -l)\n\echo " - LibreOffice processes running: $LIBREOFFICE_COUNT"\n\\n\# 启动 Nginx\n\echo "Starting Nginx on port 7860..."\n\9 unmodified lines# 9. 启动命令ENTRYPOINT []CMD ["/start.sh"]10 unmodified lines11121314151697 unmodified lines11411511611711811912012112229 unmodified lines1521531541551561571581591601611621631641659 unmodified lines17517617717810 unmodified lineslibfreetype6 \fontconfig \fonts-wqy-zenhei \&& rm -rf /var/lib/apt/lists/* \&& fc-cache -fv97 unmodified linessleep 2\n\echo "✓ Xvfb started on DISPLAY=:99"\n\\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 linessleep 2\n\done\n\\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\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"]
Dockerfile+10-18