Commit Graph

20 Commits

Author SHA1 Message Date
copilot-swe-agent[bot] 3d71d2b362 fix(docker): copy migrations directory and alembic.ini into Docker image
The Docker container failed to start because the Alembic migrations
directory was not being copied into the image. The init_db() function
calls _run_alembic_upgrade() which requires /app/migrations to exist.

Added COPY instructions for ./migrations and ./alembic.ini to both
Dockerfile and Dockerfile.local.

Co-authored-by: christianlouis <361235+christianlouis@users.noreply.github.com>
2026-03-01 17:55:06 +00:00
copilot-swe-agent[bot] 8a2a4dc2b3 feat(ocr): auto-install Tesseract/EasyOCR languages from settings
- Add app/utils/ocr_language_manager.py: detects tessdata dir, downloads
  missing .traineddata files via wget/curl from tessdata_fast GitHub repo,
  pre-downloads EasyOCR models, exposes async background-thread helper
- TesseractOCRProvider.process() calls ensure_tesseract_languages() before
  running pytesseract; raises clear error if languages remain unavailable
- EasyOCRProvider.process() logs informational message when models download
- app/main.py: calls ensure_ocr_languages_async() at startup
- app/utils/settings_sync.py: triggers language re-check after every
  settings reload so UI changes take effect without container restart
- app/api/settings.py: adds POST /api/settings/install-ocr-languages
  endpoint for on-demand language installation from the admin UI
- Dockerfile: adds wget for runtime tessdata downloads
- docs/ConfigurationGuide.md: documents automatic language download
- tests/test_ocr_language_manager.py: 29 unit tests

Co-authored-by: christianlouis <361235+christianlouis@users.noreply.github.com>
2026-02-24 16:28:14 +00:00
copilot-swe-agent[bot] fec032643b feat(ocr): embed searchable text layer for providers without native PDF output
Co-authored-by: christianlouis <361235+christianlouis@users.noreply.github.com>
2026-02-24 13:19:52 +00:00
copilot-swe-agent[bot] b03ebab747 chore: apply ruff formatting and fix whitespace issues
Co-authored-by: christianlouis <361235+christianlouis@users.noreply.github.com>
2026-02-13 09:12:11 +00:00
snyk-bot d0b2331f62 fix: Dockerfile to reduce vulnerabilities
The following vulnerabilities are fixed with an upgrade:
- https://snyk.io/vuln/SNYK-DEBIAN13-OPENSSL-15123186
- https://snyk.io/vuln/SNYK-DEBIAN13-OPENSSL-15123178
- https://snyk.io/vuln/SNYK-DEBIAN13-OPENSSL-15123183
- https://snyk.io/vuln/SNYK-DEBIAN13-OPENSSL-15123187
- https://snyk.io/vuln/SNYK-DEBIAN13-OPENSSL-15123204
2026-02-12 12:58:24 +00:00
copilot-swe-agent[bot] 5f175fabee Add automated build metadata generation system
Co-authored-by: christianlouis <361235+christianlouis@users.noreply.github.com>
2026-02-07 19:37:40 +00:00
Christian Krakau-Louis 1fac2ff76c Update Dockerfile 2025-12-09 19:13:11 +01:00
Christian Krakau-Louis f4397138f8 Update Dockerfile to use Python 3.14.1 2025-12-09 19:11:19 +01:00
snyk-bot 88770ac9d5 fix: Dockerfile to reduce vulnerabilities
The following vulnerabilities are fixed with an upgrade:
- https://snyk.io/vuln/SNYK-DEBIAN12-SQLITE3-10753055
- https://snyk.io/vuln/SNYK-DEBIAN12-GNUTLS28-10690985
- https://snyk.io/vuln/SNYK-DEBIAN12-GNUTLS28-10690987
- https://snyk.io/vuln/SNYK-DEBIAN12-PERL-5489190
- https://snyk.io/vuln/SNYK-DEBIAN12-GNUTLS28-10690990
2025-12-04 14:30:31 +00:00
Christian Krakau-Louis 05ede35059 feat: Add license and attribution routes, update templates and documentation
- Added a new license route to serve the LGPL license text.
- Introduced a new attribution page to acknowledge third-party software used in the project.
- Updated the base HTML template to include a link to the attribution page.
- Included the license router in the main application router.
- Added the license text file for LGPL to the static licenses directory.
- Updated the NOTICE file to include detailed attributions for third-party libraries.
- Added a new requirements-dev.txt for license compliance checking.
- Updated the requirements.txt to clarify the LGPL license for Paramiko.
2025-04-11 02:39:26 +02:00
Christian Krakau-Louis d66fef7ad4 feat: Enhance Docker setup and application status reporting with build date and container info 2025-04-07 00:43:14 +02:00
Christian Krakau-Louis b93c781339 feat: Add build date functionality and enhance documentation pages
- Added a script to save the build date during Docker image build.
- Introduced a build_date property in the Settings class to retrieve the build date from the environment or file.
- Enhanced the homepage to display system statistics including processed files and active integrations.
- Updated the about page with a comprehensive list of features.
- Added new privacy, imprint, cookies, and terms pages with relevant content.
- Improved the license page with related information links.
- Refactored the base template for better mobile responsiveness and footer links.
2025-04-07 00:05:49 +02:00
Christian Krakau-Louis 7dca46b94b feat: add license page and version display in templates, update LICENSE file, and enhance footer with license information 2025-04-03 22:12:12 +02:00
Christian Krakau-Louis 4ca0ce8d4f Added a new version of the Dockerfile to support the latest version of the software. 2025-04-02 03:10:02 +02:00
Christian Krakau-Louis 6f5ec7bd14 chore: update Python version in Dockerfile and enhance requirements.txt with comments 2025-03-29 03:56:04 +01:00
snyk-bot 70b82775f3 fix: Dockerfile to reduce vulnerabilities
The following vulnerabilities are fixed with an upgrade:
- https://snyk.io/vuln/SNYK-DEBIAN12-ZLIB-6008963
- https://snyk.io/vuln/SNYK-DEBIAN12-GNUPG2-9486681
- https://snyk.io/vuln/SNYK-DEBIAN12-NCURSES-6123823
- https://snyk.io/vuln/SNYK-DEBIAN12-NCURSES-6123823
- https://snyk.io/vuln/SNYK-DEBIAN12-NCURSES-6123823
2025-03-28 23:02:31 +00:00
Christian Krakau-Louis 19c763e595 added a favicon, updated the README.md file 2025-03-25 10:48:55 +01:00
Christian Krakau-Louis 09db93f353 added frontend dir to Dockerfile 2025-03-24 16:57:35 +01:00
Christian Krakau-Louis 1ad9425102 Added first working version of the code. Processes
PDF files, no upload yet.
2025-02-11 19:42:23 +01:00
Christian Krakau-Louis 8b4c84f825 Create Dockerfile 2025-02-09 16:17:31 +01:00