Soumik Bose commited on
Commit
3a57d82
·
1 Parent(s): 397cca7

Initial commit

Browse files
Files changed (1) hide show
  1. Dockerfile +3 -3
Dockerfile CHANGED
@@ -5,10 +5,9 @@ FROM python:3.11-slim
5
  WORKDIR /app
6
 
7
  # Install system dependencies
8
- # Added 'poppler-utils' (required for pdf2image)
9
- # Added 'libgl1' & 'libglib2.0-0' (required for OpenCV headless)
10
- # Added 'curl' just in case, though we use python requests for healthcheck
11
  RUN apt-get update && apt-get install -y \
 
12
  tesseract-ocr \
13
  tesseract-ocr-eng \
14
  tesseract-ocr-deu \
@@ -48,6 +47,7 @@ RUN mkdir -p ${HF_HOME} && chmod 777 ${HF_HOME}
48
  EXPOSE $PORT
49
 
50
  # Run FastAPI with Uvicorn
 
51
  CMD bash -c "\
52
  while true; do \
53
  curl -s https://xce009-ocr-api.hf.space/api/v1/ping >/dev/null; \
 
5
  WORKDIR /app
6
 
7
  # Install system dependencies
8
+ # Added 'curl' explicitly to the list below
 
 
9
  RUN apt-get update && apt-get install -y \
10
+ curl \
11
  tesseract-ocr \
12
  tesseract-ocr-eng \
13
  tesseract-ocr-deu \
 
47
  EXPOSE $PORT
48
 
49
  # Run FastAPI with Uvicorn
50
+ # The curl command will now work because the package is installed
51
  CMD bash -c "\
52
  while true; do \
53
  curl -s https://xce009-ocr-api.hf.space/api/v1/ping >/dev/null; \