Create Dockerfile
Browse files- Dockerfile +19 -0
Dockerfile
ADDED
@@ -0,0 +1,19 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
# Use the official Python image as base
|
2 |
+
FROM python:3.12
|
3 |
+
|
4 |
+
# Set the working directory in the container
|
5 |
+
WORKDIR /app
|
6 |
+
|
7 |
+
# Copy the current directory contents into the container at /app
|
8 |
+
COPY . /app
|
9 |
+
|
10 |
+
# Install any dependencies
|
11 |
+
RUN pip install --no-cache-dir flask pytesseract pillow requests
|
12 |
+
RUN sudo apt update
|
13 |
+
RUN sudo apt install tesseract-ocr
|
14 |
+
RUN sudo apt install libtesseract-dev
|
15 |
+
# Expose the port the app runs on
|
16 |
+
EXPOSE
|
17 |
+
|
18 |
+
# Run the Flask app
|
19 |
+
CMD ["flask", "run", "--host", "0.0.0.0", "--port", "7860"]
|