Update Dockerfile
Browse files- Dockerfile +7 -8
Dockerfile
CHANGED
@@ -14,24 +14,23 @@ ENV PYTHONUNBUFFERED=1 \
|
|
14 |
# Set the working directory in the container
|
15 |
WORKDIR /app
|
16 |
|
17 |
-
#
|
18 |
RUN apt-get update && apt-get install -y --no-install-recommends \
|
19 |
libgl1-mesa-glx \
|
20 |
libglib2.0-0 \
|
|
|
|
|
21 |
libxext6 \
|
22 |
libxrender-dev \
|
23 |
-
libfreetype6-dev \
|
24 |
-
|
25 |
-
|
26 |
-
&& rm -rf /var/lib/apt/lists/*
|
27 |
|
28 |
# Copy the requirements file into the container
|
29 |
COPY requirements.txt .
|
30 |
|
31 |
# Install Python dependencies
|
32 |
-
|
33 |
-
|
34 |
-
pip install --no-cache-dir -r requirements.txt
|
35 |
|
36 |
# Copy the application code into the container
|
37 |
COPY mdr_pdf_parser.py .
|
|
|
14 |
# Set the working directory in the container
|
15 |
WORKDIR /app
|
16 |
|
17 |
+
# system libs for OpenCV, Ultralytics & friends
|
18 |
RUN apt-get update && apt-get install -y --no-install-recommends \
|
19 |
libgl1-mesa-glx \
|
20 |
libglib2.0-0 \
|
21 |
+
libopenblas0-pthread \
|
22 |
+
libgomp1 \
|
23 |
libxext6 \
|
24 |
libxrender-dev \
|
25 |
+
libfreetype6-dev && \
|
26 |
+
rm -rf /var/lib/apt/lists/*
|
|
|
|
|
27 |
|
28 |
# Copy the requirements file into the container
|
29 |
COPY requirements.txt .
|
30 |
|
31 |
# Install Python dependencies
|
32 |
+
RUN python -m pip install --no-cache-dir --upgrade pip \
|
33 |
+
&& python -m pip install --no-cache-dir -r requirements.txt
|
|
|
34 |
|
35 |
# Copy the application code into the container
|
36 |
COPY mdr_pdf_parser.py .
|