Singhp08 commited on
Commit
76cc5b5
·
verified ·
1 Parent(s): c0eaebf

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +5 -9
Dockerfile CHANGED
@@ -1,17 +1,13 @@
1
- # Python ka server layega
2
  FROM python:3.10
3
 
4
- # Kaam karne ki jagah
5
  WORKDIR /app
6
-
7
- # Server ka naya port (Hugging Face 7860 use karta hai)
8
  ENV PORT=7860
9
 
10
- # Saari files server par copy karega
11
- COPY . .
12
 
13
- # Libraries install karega
14
  RUN pip install --no-cache-dir -r requirements.txt
15
 
16
- # Bot ko chalu karega
17
- CMD ["python", "bot.py"]
 
 
1
  FROM python:3.10
2
 
 
3
  WORKDIR /app
 
 
4
  ENV PORT=7860
5
 
6
+ # OCR ko chalane ke liye Linux ka software
7
+ RUN apt-get update && apt-get install -y tesseract-ocr
8
 
9
+ COPY . .
10
  RUN pip install --no-cache-dir -r requirements.txt
11
 
12
+ # Bot nahi, ab Flask API server chalega
13
+ CMD ["python", "app.py"]