From a962eafea54206aa7b5dd0cb907232e7b2a74ccb Mon Sep 17 00:00:00 2001 From: TheMaddax Date: Thu, 20 Mar 2025 10:51:06 -0500 Subject: [PATCH] Fix version mismatch --- Dockerfile | 2 +- cline_docs/activeContext.md | 7 +++++++ docker-compose.yml | 3 +++ 3 files changed, 11 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index d44d5a4..79cde5d 100644 --- a/Dockerfile +++ b/Dockerfile @@ -41,7 +41,7 @@ RUN pip install --no-cache-dir \ pytesseract==0.3.10 # Install OCRmyPDF and its dependencies -RUN pip install --no-cache-dir ocrmypdf==14.4.0 pdf2image==1.16.3 +RUN pip install --no-cache-dir ocrmypdf==16.10.0 pdf2image==1.16.3 pikepdf==9.5.2 # Install AI-related dependencies RUN pip install --no-cache-dir \ diff --git a/cline_docs/activeContext.md b/cline_docs/activeContext.md index f8df014..541ebe5 100644 --- a/cline_docs/activeContext.md +++ b/cline_docs/activeContext.md @@ -7,6 +7,13 @@ - Finalizing image description functionality ## Recent Changes +- Fixed Docker containerization issues: + - Updated Dockerfile to use OCRmyPDF 16.10.0 (matching requirements.txt) + - Added pikepdf 9.5.2 to Dockerfile (was missing but in requirements.txt) + - Added version '3.8' to docker-compose.yml + - Added restart policy to improve container stability + - Fixed 'ContainerConfig' KeyError in Docker Compose + - Removed TxtToPdf functionality: - Removed TxtToPdf component from frontend - Removed TxtToPdf route from App.js navigation diff --git a/docker-compose.yml b/docker-compose.yml index 55be858..4703e9e 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -1,3 +1,5 @@ +version: '3.8' + services: webapp: build: . @@ -7,6 +9,7 @@ services: volumes: - ./backend/uploads:/app/backend/uploads - ./backend/outputs:/app/backend/outputs + restart: unless-stopped environment: - GEMINI_API_KEY=AIzaSyCJoOG222bZRdXIf-3J_9ooEW66BPU9kMY # chris@sigd.net account