Update Dockerfile
Browse files- Dockerfile +8 -3
Dockerfile
CHANGED
|
@@ -15,18 +15,23 @@ RUN apt-get update && apt-get install -y \
|
|
| 15 |
python3.10 \
|
| 16 |
python3-pip \
|
| 17 |
tesseract-ocr \
|
|
|
|
| 18 |
libtesseract-dev \
|
| 19 |
poppler-utils \
|
| 20 |
libopencv-dev \
|
| 21 |
tzdata \
|
|
|
|
|
|
|
| 22 |
&& apt-get clean \
|
| 23 |
&& rm -rf /var/lib/apt/lists/*
|
| 24 |
|
| 25 |
-
#
|
| 26 |
-
|
| 27 |
|
| 28 |
-
#
|
| 29 |
COPY requirements.txt .
|
|
|
|
|
|
|
| 30 |
RUN pip3 install --no-cache-dir -r requirements.txt
|
| 31 |
|
| 32 |
# Copy application code
|
|
|
|
| 15 |
python3.10 \
|
| 16 |
python3-pip \
|
| 17 |
tesseract-ocr \
|
| 18 |
+
tesseract-ocr-ara \
|
| 19 |
libtesseract-dev \
|
| 20 |
poppler-utils \
|
| 21 |
libopencv-dev \
|
| 22 |
tzdata \
|
| 23 |
+
wget \
|
| 24 |
+
curl \
|
| 25 |
&& apt-get clean \
|
| 26 |
&& rm -rf /var/lib/apt/lists/*
|
| 27 |
|
| 28 |
+
# Set working directory
|
| 29 |
+
WORKDIR /app
|
| 30 |
|
| 31 |
+
# Copy requirements first for better caching
|
| 32 |
COPY requirements.txt .
|
| 33 |
+
|
| 34 |
+
# Install Python dependencies
|
| 35 |
RUN pip3 install --no-cache-dir -r requirements.txt
|
| 36 |
|
| 37 |
# Copy application code
|