Alfonso Velasco commited on
Commit
b0da85e
·
1 Parent(s): bb75bf5

adding docker

Browse files
Files changed (1) hide show
  1. Dockerfile +18 -0
Dockerfile ADDED
@@ -0,0 +1,18 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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-eng \
7
+ poppler-utils \
8
+ && rm -rf /var/lib/apt/lists/*
9
+
10
+ # Copy your handler
11
+ COPY handler.py /app/handler.py
12
+ COPY requirements.txt /app/requirements.txt
13
+
14
+ WORKDIR /app
15
+
16
+ RUN pip install -r requirements.txt
17
+
18
+ CMD ["python", "handler.py"]