Godswill-IoT commited on
Commit
1ecd7a1
·
verified ·
1 Parent(s): 9c2a788

Upload 17 files

Browse files
Files changed (2) hide show
  1. Dockerfile +5 -2
  2. requirements.txt +6 -5
Dockerfile CHANGED
@@ -1,5 +1,8 @@
1
  FROM python:3.11-slim
2
 
 
 
 
3
  # Install system dependencies (Tesseract OCR)
4
  RUN apt-get update && apt-get install -y \
5
  tesseract-ocr \
@@ -20,8 +23,8 @@ ENV HOME=/home/user \
20
  # Set the working directory to the user's home directory
21
  WORKDIR $HOME/app
22
 
23
- # Try and run pip command after setting the user with `USER user` to avoid permission issues
24
- RUN pip install --no-cache-dir --upgrade pip
25
 
26
  # Copy requirements and install dependencies
27
  COPY --chown=user requirements.txt .
 
1
  FROM python:3.11-slim
2
 
3
+ # Prevent interactive prompts
4
+ ENV DEBIAN_FRONTEND=noninteractive
5
+
6
  # Install system dependencies (Tesseract OCR)
7
  RUN apt-get update && apt-get install -y \
8
  tesseract-ocr \
 
23
  # Set the working directory to the user's home directory
24
  WORKDIR $HOME/app
25
 
26
+ # Upgrade pip as the user
27
+ RUN pip install --no-cache-dir --upgrade pip setuptools wheel
28
 
29
  # Copy requirements and install dependencies
30
  COPY --chown=user requirements.txt .
requirements.txt CHANGED
@@ -1,6 +1,7 @@
1
  fastapi==0.115.6
2
- uvicorn[standard]==0.30.6
3
- pydantic==2.9.2
4
- httpx==0.27.2
5
- python-multipart==0.0.9
6
- pillow==10.4.0
 
 
1
  fastapi==0.115.6
2
+ uvicorn==0.34.0
3
+ pydantic==2.10.5
4
+ httpx==0.28.1
5
+ python-multipart==0.0.12
6
+ pillow==11.1.0
7
+ pytesseract==0.3.13