Spaces:
Sleeping
Sleeping
Update Dockerfile
Browse files- Dockerfile +5 -6
Dockerfile
CHANGED
|
@@ -3,7 +3,7 @@ FROM python:3.10-slim
|
|
| 3 |
# Install system dependencies including libcrypt and required libraries
|
| 4 |
RUN apt-get update && \
|
| 5 |
apt-get install -y \
|
| 6 |
-
libxcrypt-dev
|
| 7 |
libgl1-mesa-glx \
|
| 8 |
libglib2.0-0 \
|
| 9 |
libsm6 \
|
|
@@ -27,16 +27,15 @@ COPY requirements.txt .
|
|
| 27 |
|
| 28 |
RUN pip install --upgrade pip
|
| 29 |
|
| 30 |
-
|
| 31 |
-
|
| 32 |
-
RUN python -c "import fitz; print('PyMuPDF imported successfully')"
|
| 33 |
-
|
| 34 |
RUN pip install --no-cache-dir -r requirements.txt
|
| 35 |
|
|
|
|
| 36 |
RUN python -c "from docx import Document; print('python-docx installed successfully')"
|
| 37 |
|
| 38 |
COPY . .
|
| 39 |
|
| 40 |
EXPOSE 7860
|
| 41 |
|
| 42 |
-
CMD ["gunicorn", "--bind", "0.0.0.0:7860", "app:app"]
|
|
|
|
| 3 |
# Install system dependencies including libcrypt and required libraries
|
| 4 |
RUN apt-get update && \
|
| 5 |
apt-get install -y \
|
| 6 |
+
libcrypt-dev \ # Changed from libxcrypt-dev to libcrypt-dev
|
| 7 |
libgl1-mesa-glx \
|
| 8 |
libglib2.0-0 \
|
| 9 |
libsm6 \
|
|
|
|
| 27 |
|
| 28 |
RUN pip install --upgrade pip
|
| 29 |
|
| 30 |
+
# Note: You have PyMuPDF version mismatch between Dockerfile and requirements.txt
|
| 31 |
+
# Dockerfile has 1.23.0 while requirements.txt has 1.23.26
|
|
|
|
|
|
|
| 32 |
RUN pip install --no-cache-dir -r requirements.txt
|
| 33 |
|
| 34 |
+
RUN python -c "import fitz; print('PyMuPDF imported successfully')"
|
| 35 |
RUN python -c "from docx import Document; print('python-docx installed successfully')"
|
| 36 |
|
| 37 |
COPY . .
|
| 38 |
|
| 39 |
EXPOSE 7860
|
| 40 |
|
| 41 |
+
CMD ["gunicorn", "--bind", "0.0.0.0:7860", "app:app"]
|