Update Dockerfile
Browse files- Dockerfile +7 -2
Dockerfile
CHANGED
@@ -5,8 +5,13 @@ WORKDIR /app
|
|
5 |
# Copy the current directory contents into the container at /app
|
6 |
ADD . /app
|
7 |
# Install any needed packages specified in requirements.txt
|
|
|
|
|
|
|
|
|
|
|
|
|
8 |
RUN pip install --no-cache-dir opencv-python-headless pytesseract flask
|
9 |
-
|
10 |
-
EXPOSE 5000
|
11 |
# Run app.py when the container launches
|
12 |
CMD ["python", "app.py"]
|
|
|
5 |
# Copy the current directory contents into the container at /app
|
6 |
ADD . /app
|
7 |
# Install any needed packages specified in requirements.txt
|
8 |
+
RUN apt-get update && apt-get install -y
|
9 |
+
tesseract-ocr
|
10 |
+
libtesseract-dev
|
11 |
+
&& apt-get clean
|
12 |
+
&& apt-get autoremove
|
13 |
+
&& rm -rf /var/lib/apt/lists/*
|
14 |
RUN pip install --no-cache-dir opencv-python-headless pytesseract flask
|
15 |
+
|
|
|
16 |
# Run app.py when the container launches
|
17 |
CMD ["python", "app.py"]
|