SakibRumu
commited on
Create Dockerfile
Browse files- Dockerfile +22 -0
Dockerfile
ADDED
@@ -0,0 +1,22 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
FROM python:3.10-slim
|
2 |
+
|
3 |
+
# Install system dependencies
|
4 |
+
RUN apt-get update && apt-get install -y \
|
5 |
+
tesseract-ocr \
|
6 |
+
tesseract-ocr-ben \
|
7 |
+
libglib2.0-0 libsm6 libxrender1 libxext6 \
|
8 |
+
&& apt-get clean \
|
9 |
+
&& rm -rf /var/lib/apt/lists/*
|
10 |
+
|
11 |
+
# Set work directory
|
12 |
+
WORKDIR /app
|
13 |
+
|
14 |
+
# Copy files
|
15 |
+
COPY requirements.txt .
|
16 |
+
COPY app.py .
|
17 |
+
|
18 |
+
# Install Python dependencies
|
19 |
+
RUN pip install --no-cache-dir -r requirements.txt
|
20 |
+
|
21 |
+
# Run the app
|
22 |
+
CMD ["python", "app.py"]
|