Spaces:
Sleeping
Sleeping
Upload 17 files
Browse files- Dockerfile +5 -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 |
-
#
|
| 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
|
| 3 |
-
pydantic==2.
|
| 4 |
-
httpx==0.
|
| 5 |
-
python-multipart==0.0.
|
| 6 |
-
pillow==
|
|
|
|
|
|
| 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
|