Wajahat698 commited on
Commit
c5b0b47
·
verified ·
1 Parent(s): 783706c

Upload 3 files

Browse files
Files changed (3) hide show
  1. Dockerfile +24 -0
  2. requirements.txt +6 -0
  3. yolov8n.pt +3 -0
Dockerfile ADDED
@@ -0,0 +1,24 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Use lightweight Python base
2
+ FROM python:3.11-slim
3
+
4
+ # Install dependencies
5
+ RUN apt-get update && apt-get install -y \
6
+ tesseract-ocr \
7
+ libgl1-mesa-glx \
8
+ build-essential
9
+
10
+ # Set workdir
11
+ WORKDIR /app
12
+
13
+ # Copy app files
14
+ COPY . /app
15
+
16
+ # Install Python libraries
17
+ RUN pip install --upgrade pip
18
+ RUN pip install -r requirements.txt
19
+
20
+ # Expose port
21
+ EXPOSE 5000
22
+
23
+ # Start the server
24
+ CMD ["gunicorn", "--bind", "0.0.0.0:5000", "app:app"]
requirements.txt ADDED
@@ -0,0 +1,6 @@
 
 
 
 
 
 
 
1
+ flask
2
+ numpy
3
+ opencv-python-headless
4
+ pytesseract
5
+ ultralytics
6
+ gunicorn
yolov8n.pt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:31e20dde3def09e2cf938c7be6fe23d9150bbbe503982af13345706515f2ef95
3
+ size 6534387