Spaces:
Running
Running
Commit
·
3b4cdb1
1
Parent(s):
13477e3
Refactor Dockerfile to streamline package installation and ensure APT lists are cleaned up
Browse files- Dockerfile +4 -4
Dockerfile
CHANGED
|
@@ -3,8 +3,8 @@ FROM python:3.12-slim
|
|
| 3 |
WORKDIR /app
|
| 4 |
|
| 5 |
# Install system dependencies including those needed for OCR and ML models
|
| 6 |
-
RUN apt-get update &&
|
| 7 |
-
|
| 8 |
curl \
|
| 9 |
poppler-utils \
|
| 10 |
libgl1-mesa-glx \
|
|
@@ -12,8 +12,8 @@ RUN apt-get update && \
|
|
| 12 |
libsm6 \
|
| 13 |
libxext6 \
|
| 14 |
libxrender-dev \
|
| 15 |
-
libgomp1
|
| 16 |
-
|
| 17 |
rm -rf /var/lib/apt/lists/*
|
| 18 |
|
| 19 |
# Install poetry
|
|
|
|
| 3 |
WORKDIR /app
|
| 4 |
|
| 5 |
# Install system dependencies including those needed for OCR and ML models
|
| 6 |
+
RUN apt-get update -y && apt-get upgrade -y
|
| 7 |
+
RUN apt-get install -y --no-install-recommends \
|
| 8 |
curl \
|
| 9 |
poppler-utils \
|
| 10 |
libgl1-mesa-glx \
|
|
|
|
| 12 |
libsm6 \
|
| 13 |
libxext6 \
|
| 14 |
libxrender-dev \
|
| 15 |
+
libgomp1
|
| 16 |
+
RUN apt-get clean -y && \
|
| 17 |
rm -rf /var/lib/apt/lists/*
|
| 18 |
|
| 19 |
# Install poetry
|