Spaces:
No application file
No application file
KevanSoon
commited on
Commit
·
688bfaa
1
Parent(s):
1899ec7
remove dockerfile
Browse files- Dockerfile +0 -32
Dockerfile
DELETED
@@ -1,32 +0,0 @@
|
|
1 |
-
FROM python:3.11-slim
|
2 |
-
|
3 |
-
# Install system dependencies (Tesseract + libs)
|
4 |
-
RUN apt-get update && apt-get install -y --no-install-recommends \
|
5 |
-
tesseract-ocr \
|
6 |
-
tesseract-ocr-eng \
|
7 |
-
tesseract-ocr-jpn \
|
8 |
-
tesseract-ocr-chi-sim \
|
9 |
-
tesseract-ocr-chi-tra \
|
10 |
-
libgl1 \
|
11 |
-
&& rm -rf /var/lib/apt/lists/*
|
12 |
-
|
13 |
-
# Set working directory
|
14 |
-
WORKDIR /app
|
15 |
-
|
16 |
-
# Copy requirements first (for better caching)
|
17 |
-
COPY requirements.txt .
|
18 |
-
|
19 |
-
# Install Python dependencies
|
20 |
-
RUN pip install --no-cache-dir -r requirements.txt
|
21 |
-
|
22 |
-
# Ensure PaddleOCR has a writable cache directory
|
23 |
-
ENV PADDLEOCR_HOME=/app/.paddleocr
|
24 |
-
|
25 |
-
# Copy app source code
|
26 |
-
COPY . .
|
27 |
-
|
28 |
-
# Expose port (choose 7860 for Hugging Face)
|
29 |
-
EXPOSE 7860
|
30 |
-
|
31 |
-
# Start the app with uvicorn
|
32 |
-
CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|